forked from rDrama/rDrama
1
0
Fork 0

fix 500 error

master
Aevann 2023-08-23 00:36:19 +03:00
parent b992c97b64
commit f760574e3a
1 changed files with 1 additions and 0 deletions

View File

@ -278,6 +278,7 @@ def sign_up_post(v):
return signup_error("Invalid email!")
else: email = None
g.db.flush()
existing_account = get_user(username, graceful=True)
if existing_account:
return signup_error("An account with that username already exists!")