forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-05-26 00:02:54 +02:00
parent 60058c5130
commit 1c6ca7c9e0
1 changed files with 4 additions and 3 deletions

View File

@ -337,7 +337,6 @@ def sign_up_post(v):
)
g.db.add(new_user)
g.db.commit()
if ref_id:
ref_user = g.db.query(User).filter_by(id=ref_id).one_or_none()
@ -359,10 +358,12 @@ def sign_up_post(v):
g.db.flush()
send_notification(ref_user.id, f"@AutoJanny has given you the following profile badge:\n\n![]({new_badge.path})\n\n{new_badge.name}")
check_for_alts(new_user.id)
if email: send_verification_email(new_user)
g.db.commit()
check_for_alts(new_user.id)
send_notification(new_user.id, WELCOME_MSG)
session["lo_user"] = new_user.id