forked from rDrama/rDrama
vxc
parent
16ba53ec84
commit
56f5d44c90
|
@ -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…
Reference in New Issue