LoginFormn: Use placeholder insted of labels

This commit is contained in:
Florian Strohmaier 2021-06-21 14:57:34 +02:00 committed by Johannes Meyer
parent 1119e001d4
commit 9a8bf67072
1 changed files with 2 additions and 2 deletions

View File

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