mirror of
https://github.com/sb745/NyaaV3.git
synced 2025-03-12 13:56:55 +02:00
fix registration
This commit is contained in:
parent
08217cee2f
commit
40c311f80a
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ def before_request():
|
|||
|
||||
flask.g.user = user
|
||||
|
||||
if not 'timeout' not in flask.session or flask.session['timeout'] < datetime.now():
|
||||
if 'timeout' not in flask.session or flask.session['timeout'] < datetime.now():
|
||||
flask.session['timeout'] = datetime.now() + timedelta(days=7)
|
||||
flask.session.permanent = True
|
||||
flask.session.modified = True
|
||||
|
|
Loading…
Add table
Reference in a new issue