forked from rDrama/rDrama
1
0
Fork 0

print username instead

master
Aevann 2023-08-31 16:16:03 +03:00
parent 19ac58bce1
commit 47f89bdfcb
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.permanent = True
session["lo_user"] = account.id session["lo_user"] = account.id
g.v = account g.v = account
g.vid = account.id g.vid = account.username
session["login_nonce"] = account.login_nonce session["login_nonce"] = account.login_nonce
check_for_alts(account, include_current_session=True) check_for_alts(account, include_current_session=True)
@ -343,7 +343,7 @@ def sign_up_post(v):
session.permanent = True session.permanent = True
session["lo_user"] = new_user.id session["lo_user"] = new_user.id
g.v = new_user g.v = new_user
g.vid = new_user.id g.vid = new_user.username
check_for_alts(new_user, include_current_session=True) check_for_alts(new_user, include_current_session=True)
send_notification(new_user.id, WELCOME_MSG) send_notification(new_user.id, WELCOME_MSG)

View File

@ -108,7 +108,7 @@ def get_logged_in_user():
g.v = v g.v = v
if v: if v:
g.vid = v.id g.vid = v.username
if not v and SITE == 'rdrama.net' and request.headers.get("Cf-Ipcountry") == 'EG': if not v and SITE == 'rdrama.net' and request.headers.get("Cf-Ipcountry") == 'EG':
abort(404) abort(404)