IMPR: Login form UX improvements

This commit is contained in:
Tony Air 2021-01-15 00:23:05 +07:00
parent ab0c9e362a
commit 365165fd41

View File

@ -24,12 +24,16 @@ class SiteMemberLoginForm extends MemberLoginForm
$email = $fields->fieldByName('Email');
if ($email) {
$email->setAttribute('autocomplete', 'email');
$email
->setAttribute('placeholder', 'your@email.com')
->setAttribute('autocomplete', 'email')
->setAttribute('type', 'email');
}
$pass = $fields->fieldByName('Password');
if($pass) {
//$pass->setAttribute('autocomplete', 'current-password');
$pass->setAttribute('placeholder', '**********');
$pass->setAutofocus(true);
}