LoginForm: Add `autocomplete` attributes as requested by Chrome

This commit is contained in:
Johannes Meyer 2021-03-09 08:58:12 +01:00
parent 07251e6d5e
commit 885947bc6a
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,7 @@ class LoginForm extends Form
'username',
array(
'autocapitalize' => 'off',
'autocomplete' => 'username',
'class' => false === isset($formData['username']) ? 'autofocus' : '',
'label' => $this->translate('Username'),
'required' => true
@ -54,6 +55,7 @@ class LoginForm extends Form
'password',
array(
'required' => true,
'autocomplete' => 'current-password',
'label' => $this->translate('Password'),
'class' => isset($formData['username']) ? 'autofocus' : ''
)