mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 20:10:00 +00:00
Remove username validator from login form to allow logging in with email
Since our previous regex was broken, the validator passed practically everything.
This commit is contained in:
parent
b6ecad898d
commit
d89f74893b
|
@ -42,7 +42,7 @@ _username_validator = Regexp(
|
||||||
|
|
||||||
|
|
||||||
class LoginForm(FlaskForm):
|
class LoginForm(FlaskForm):
|
||||||
username = StringField('Username or email address', [DataRequired(), _username_validator])
|
username = StringField('Username or email address', [DataRequired()])
|
||||||
password = PasswordField('Password', [DataRequired()])
|
password = PasswordField('Password', [DataRequired()])
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue