mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 06:22:24 +01:00
Fix duplicate name checking in register form
This commit is contained in:
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()
|
||||
|
Loading…
Reference in New Issue
Block a user