|
|
@ -5,7 +5,7 @@ import flask_wtf
|
|
|
|
class LoginForm(flask_wtf.FlaskForm):
|
|
|
|
class LoginForm(flask_wtf.FlaskForm):
|
|
|
|
class Meta:
|
|
|
|
class Meta:
|
|
|
|
csrf = False
|
|
|
|
csrf = False
|
|
|
|
email = fields.StringField(_('E-mail'), [validators.Email(), validators.DataRequired()])
|
|
|
|
email = fields.StringField(_('E-mail'), [validators.Email(), validators.DataRequired()], render_kw={'autofocus': True})
|
|
|
|
pw = fields.PasswordField(_('Password'), [validators.DataRequired()])
|
|
|
|
pw = fields.PasswordField(_('Password'), [validators.DataRequired()])
|
|
|
|
pwned = fields.HiddenField(label='', default=-1)
|
|
|
|
pwned = fields.HiddenField(label='', default=-1)
|
|
|
|
submitWebmail = fields.SubmitField(_('Sign in'))
|
|
|
|
submitWebmail = fields.SubmitField(_('Sign in'))
|
|
|
|