gfd
This commit is contained in:
parent
37b54831f9
commit
5d74f650f3
1 changed files with 2 additions and 0 deletions
|
@ -139,6 +139,7 @@ def login_post():
|
||||||
else:
|
else:
|
||||||
abort(400)
|
abort(400)
|
||||||
|
|
||||||
|
session.permanent = True
|
||||||
session["session_id"] = token_hex(49)
|
session["session_id"] = token_hex(49)
|
||||||
session["lo_user"] = account.id
|
session["lo_user"] = account.id
|
||||||
session["login_nonce"] = account.login_nonce
|
session["login_nonce"] = account.login_nonce
|
||||||
|
@ -355,6 +356,7 @@ def sign_up_post(v):
|
||||||
|
|
||||||
send_notification(new_user.id, WELCOME_MSG)
|
send_notification(new_user.id, WELCOME_MSG)
|
||||||
|
|
||||||
|
session.permanent = True
|
||||||
session["session_id"] = token_hex(49)
|
session["session_id"] = token_hex(49)
|
||||||
session["lo_user"] = new_user.id
|
session["lo_user"] = new_user.id
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue