forked from rDrama/rDrama
minor infra change
parent
61cb92e054
commit
92fc2793a2
|
@ -115,7 +115,7 @@ def on_login(account, redir=None):
|
|||
session.permanent = True
|
||||
session["lo_user"] = account.id
|
||||
g.v = account
|
||||
g.vid = account.username
|
||||
g.username = account.username
|
||||
session["login_nonce"] = account.login_nonce
|
||||
check_for_alts(account, include_current_session=True)
|
||||
|
||||
|
@ -342,7 +342,7 @@ def sign_up_post(v):
|
|||
session.permanent = True
|
||||
session["lo_user"] = new_user.id
|
||||
g.v = new_user
|
||||
g.vid = new_user.username
|
||||
g.username = new_user.username
|
||||
|
||||
check_for_alts(new_user, include_current_session=True)
|
||||
send_notification(new_user.id, WELCOME_MSG)
|
||||
|
|
|
@ -109,7 +109,7 @@ def get_logged_in_user():
|
|||
|
||||
g.v = v
|
||||
if v:
|
||||
g.vid = v.username
|
||||
g.username = v.username
|
||||
|
||||
if not v and SITE == 'rdrama.net' and request.headers.get("Cf-Ipcountry") == 'EG':
|
||||
abort(404)
|
||||
|
|
Loading…
Reference in New Issue