mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-28 03:56:43 +02:00
Disable anti-csrf on the login form
The rationale is that the attacker doesn't have the password... and that doing it this way we avoid creating useless sessions
This commit is contained in:
parent
481cb67392
commit
64d757582d
@ -46,6 +46,8 @@ class ConfirmationForm(flask_wtf.FlaskForm):
|
||||
|
||||
|
||||
class LoginForm(flask_wtf.FlaskForm):
|
||||
class Meta:
|
||||
csrf = False
|
||||
email = fields.StringField(_('E-mail'), [validators.Email()])
|
||||
pw = fields.PasswordField(_('Password'), [validators.DataRequired()])
|
||||
submit = fields.SubmitField(_('Sign in'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user