fart
This commit is contained in:
parent
0b6578d985
commit
e753c26605
5
main
5
main
|
@ -275,11 +275,8 @@ def login():
|
||||||
conn.commit()
|
conn.commit()
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|
||||||
expire_date = datetime.datetime.now
|
|
||||||
expire_date = expire_date + datetime.timedelta(days=365)
|
|
||||||
|
|
||||||
resp = make_response(redirect("/"))
|
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
|
return resp
|
||||||
else:
|
else:
|
||||||
|
|
Reference in New Issue