mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
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',
|
||||
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' : ''
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user