mirror of
https://github.com/a2nt/silverstripe-webpack.git
synced 2024-10-22 17:05:31 +02:00
IMPR: Login form UX improvements
This commit is contained in:
parent
ab0c9e362a
commit
365165fd41
@ -24,12 +24,16 @@ class SiteMemberLoginForm extends MemberLoginForm
|
|||||||
|
|
||||||
$email = $fields->fieldByName('Email');
|
$email = $fields->fieldByName('Email');
|
||||||
if ($email) {
|
if ($email) {
|
||||||
$email->setAttribute('autocomplete', 'email');
|
$email
|
||||||
|
->setAttribute('placeholder', 'your@email.com')
|
||||||
|
->setAttribute('autocomplete', 'email')
|
||||||
|
->setAttribute('type', 'email');
|
||||||
}
|
}
|
||||||
|
|
||||||
$pass = $fields->fieldByName('Password');
|
$pass = $fields->fieldByName('Password');
|
||||||
if($pass) {
|
if($pass) {
|
||||||
//$pass->setAttribute('autocomplete', 'current-password');
|
//$pass->setAttribute('autocomplete', 'current-password');
|
||||||
|
$pass->setAttribute('placeholder', '**********');
|
||||||
$pass->setAutofocus(true);
|
$pass->setAutofocus(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user