vxc
This commit is contained in:
parent
5a32798d40
commit
12c49c347e
2 changed files with 0 additions and 3 deletions
|
@ -146,7 +146,6 @@ def front_all(v, sub=None, subdomain=None):
|
|||
if (request.path.startswith('/h/') or request.path.startswith('/s/')) and not sub: abort(404)
|
||||
|
||||
if g.webview and not session.get("session_id"):
|
||||
session.permanent = True
|
||||
session["session_id"] = secrets.token_hex(49)
|
||||
|
||||
if not v and request.path == "/" and not request.headers.get("Authorization"):
|
||||
|
|
|
@ -139,7 +139,6 @@ def login_post():
|
|||
else:
|
||||
abort(400)
|
||||
|
||||
session.permanent = True
|
||||
session["session_id"] = token_hex(49)
|
||||
session["lo_user"] = account.id
|
||||
session["login_nonce"] = account.login_nonce
|
||||
|
@ -356,7 +355,6 @@ def sign_up_post(v):
|
|||
|
||||
send_notification(new_user.id, WELCOME_MSG)
|
||||
|
||||
session.permanent = True
|
||||
session["session_id"] = token_hex(49)
|
||||
session["lo_user"] = new_user.id
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue