Skip to content

Commit

Permalink
Set autocomplete property on login form fields (#22023)
Browse files Browse the repository at this point in the history
* Disable autocomplete on the login password field

* change login form field properties

---------

Co-authored-by: sgiehl <[email protected]>
  • Loading branch information
bx80 and sgiehl authored Apr 16, 2024
1 parent f6d02d9 commit 2109156
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/Login/templates/login.twig
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
<form {{ form_data.attributes|raw }} ng-non-bindable>
<div class="row">
<div class="col s12 input-field">
<input type="text" name="form_login" placeholder="" id="login_form_login" class="input" value="" size="20"
autocorrect="off" autocapitalize="none"
<input type="text" name="form_login" id="login_form_login" class="input" value="" size="20"
placeholder="" autocomplete="username" autocorrect="off" autocapitalize="none" spellcheck="false"
tabindex="10" autofocus="autofocus"/>
<label for="login_form_login"><i class="icon-user icon"></i> {{ 'Login_LoginOrEmail'|translate }}</label>
</div>
Expand All @@ -36,8 +36,8 @@
<div class="col s12 input-field">
<input type="hidden" name="form_nonce" id="login_form_nonce" value="{{ nonce }}"/>
<input type="hidden" name="form_redirect" id="login_form_redirect" value=""/>
<input type="password" placeholder="" name="form_password" id="login_form_password" class="input" value="" size="20"
autocorrect="off" autocapitalize="none" spellcheck="false"
<input type="password" name="form_password" id="login_form_password" class="input" value="" size="20"
placeholder="" autocomplete="current-password" autocorrect="off" autocapitalize="none" spellcheck="false"
tabindex="20" />
<label for="login_form_password"><i class="icon-locked icon"></i> {{ 'General_Password'|translate }}</label>
</div>
Expand Down

0 comments on commit 2109156

Please sign in to comment.