master
Aevann1 2022-05-26 01:46:38 +02:00
parent a749a7eea9
commit 32bc1b3c2a
1 changed files with 4 additions and 0 deletions

View File

@ -360,6 +360,10 @@ def sign_up_post(v):
if email: send_verification_email(new_user)
existing_account = get_user(username, graceful=True)
if existing_account:
return signup_error("An account with that username already exists.")
g.db.commit()
check_for_alts(new_user.id)