Corrected timestamping
This commit is contained in:
parent
c633a474b5
commit
6bbdb8fced
@ -22,7 +22,7 @@ def _cookie_consent():
|
|||||||
value='true',
|
value='true',
|
||||||
max_age = timedelta(days=14) if request.cookies.get('remember') == 'True' else None,
|
max_age = timedelta(days=14) if request.cookies.get('remember') == 'True' else None,
|
||||||
path = '/',
|
path = '/',
|
||||||
expires = datetime.utcnow() + timedelta(days=14) if request.cookies.get('remember') else None,
|
expires = datetime.now() + timedelta(days=14) if request.cookies.get('remember') else None,
|
||||||
domain = f'{app.config.get("SERVER_NAME")}',
|
domain = f'{app.config.get("SERVER_NAME")}',
|
||||||
secure = True
|
secure = True
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user