Don't auto-capitalize the username in the login form

This commit is contained in:
Eric Lippmann 2016-11-14 14:01:55 +01:00
parent bf809ef7c8
commit 7c83db08a3
1 changed files with 4 additions and 3 deletions

View File

@ -39,9 +39,10 @@ class LoginForm extends Form
'text', 'text',
'username', 'username',
array( array(
'required' => true, 'autocapitalize' => 'off',
'label' => $this->translate('Username'), 'class' => false === isset($formData['username']) ? 'autofocus' : '',
'class' => false === isset($formData['username']) ? 'autofocus' : '' 'label' => $this->translate('Username'),
'required' => true
) )
); );
$this->addElement( $this->addElement(