From 7078ed3ac31d906a104d7969841d2414b3bc1f42 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 27 Feb 2021 19:11:53 +0000 Subject: [PATCH] Fix duplicate name checking in register form --- app/blueprints/users/account.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/blueprints/users/account.py b/app/blueprints/users/account.py index 7cf5d08b..e546d486 100644 --- a/app/blueprints/users/account.py +++ b/app/blueprints/users/account.py @@ -112,6 +112,7 @@ class RegisterForm(FlaskForm): def handle_register(form): user_by_name = User.query.filter(or_( User.username == form.username.data, + User.username == form.display_name.data, User.display_name == form.display_name.data, User.forums_username == form.username.data, User.github_username == form.username.data)).first()