Fix duplicate name checking in register form

This commit is contained in:
rubenwardy 2021-02-27 19:11:53 +00:00
parent da6b4b210f
commit 7078ed3ac3

@ -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()