forked from rDrama/rDrama
fix 500 error
parent
b992c97b64
commit
f760574e3a
|
@ -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!")
|
||||
|
|
Loading…
Reference in New Issue