mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-30 04:30:49 +02:00
Merge #2577
2577: Autofocus the login form on /sso/login r=mergify[bot] a=nextgens ## What type of PR? enhancement ## What does this PR do? Autofocus the login form on /sso/login ### Related issue(s) ## Prerequisites Before we can consider review and merge, please make sure the following list is done and checked. If an entry in not applicable, you can check it or remove it from the list. - [ ] In case of feature or enhancement: documentation updated accordingly - [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file. Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
This commit is contained in:
commit
50c7fa882e
@ -5,7 +5,7 @@ import flask_wtf
|
||||
class LoginForm(flask_wtf.FlaskForm):
|
||||
class Meta:
|
||||
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()])
|
||||
pwned = fields.HiddenField(label='', default=-1)
|
||||
submitWebmail = fields.SubmitField(_('Sign in'))
|
||||
|
1
towncrier/newsfragments/2577.misc
Normal file
1
towncrier/newsfragments/2577.misc
Normal file
@ -0,0 +1 @@
|
||||
Autofocus the login form on /sso/login
|
Loading…
x
Reference in New Issue
Block a user