From 32bc1b3c2a18238c79a0cc22ef81cd01a8cf0582 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 26 May 2022 01:46:38 +0200 Subject: [PATCH] afsfds --- files/routes/login.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/routes/login.py b/files/routes/login.py index dc19be5da0..07c6d19910 100644 --- a/files/routes/login.py +++ b/files/routes/login.py @@ -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)