1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 20:19:59 +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:
TheAMM 2017-05-26 23:27:30 +03:00
parent b6ecad898d
commit d89f74893b

View file

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