forked from rDrama/rDrama
1
0
Fork 0

minor infra change

master
Aevann 2023-10-05 14:47:43 +03:00
parent 61cb92e054
commit 92fc2793a2
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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)