This commit is contained in:
maaa 2023-07-08 21:26:03 +02:00
parent 0b6578d985
commit e753c26605
1 changed files with 1 additions and 4 deletions

5
main
View File

@ -275,11 +275,8 @@ def login():
conn.commit()
conn.close()
expire_date = datetime.datetime.now
expire_date = expire_date + datetime.timedelta(days=365)
resp = make_response(redirect("/"))
resp.set_cookie("session_DO_NOT_SHARE", randomCharacters, expires=expire_date)
resp.set_cookie("session_DO_NOT_SHARE", randomCharacters, expires=datetime.datetime.now() + datetime.timedelta(days=float(180)))
return resp
else: