forked from rDrama/rDrama
1
0
Fork 0

fix signups

master
Aevann1 2022-06-26 07:03:30 +02:00
parent ecc22cfc06
commit 49e39b94bc
1 changed files with 2 additions and 4 deletions

View File

@ -348,12 +348,10 @@ def sign_up_post(v):
try: send_verification_email(new_user)
except Exception as e: print(e)
existing_account = get_user(username, graceful=True)
if existing_account:
return signup_error("An account with that username already exists.")
check_for_alts(new_user.id)
g.db.flush()
send_notification(new_user.id, WELCOME_MSG)