LoginForm: Add `autocomplete` attributes as requested by Chrome
This commit is contained in:
parent
07251e6d5e
commit
885947bc6a
|
@ -44,6 +44,7 @@ class LoginForm extends Form
|
||||||
'username',
|
'username',
|
||||||
array(
|
array(
|
||||||
'autocapitalize' => 'off',
|
'autocapitalize' => 'off',
|
||||||
|
'autocomplete' => 'username',
|
||||||
'class' => false === isset($formData['username']) ? 'autofocus' : '',
|
'class' => false === isset($formData['username']) ? 'autofocus' : '',
|
||||||
'label' => $this->translate('Username'),
|
'label' => $this->translate('Username'),
|
||||||
'required' => true
|
'required' => true
|
||||||
|
@ -54,6 +55,7 @@ class LoginForm extends Form
|
||||||
'password',
|
'password',
|
||||||
array(
|
array(
|
||||||
'required' => true,
|
'required' => true,
|
||||||
|
'autocomplete' => 'current-password',
|
||||||
'label' => $this->translate('Password'),
|
'label' => $this->translate('Password'),
|
||||||
'class' => isset($formData['username']) ? 'autofocus' : ''
|
'class' => isset($formData['username']) ? 'autofocus' : ''
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue