Skip to content

Commit

Permalink
Merge pull request #27949 from CarlSchwan/work/carl/password-reset-au…
Browse files Browse the repository at this point in the history
…tocomplete

Add autocompletion for password reset
  • Loading branch information
artonge authored Oct 25, 2021
2 parents d231d26 + b7a35af commit 317d973
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@
<label for="pass1" class="hidden-visually"><?php p($l->t('Current password')); ?>: </label>
<input type="password" id="pass1" name="oldpassword"
placeholder="<?php p($l->t('Current password'));?>"
autocomplete="off" autocapitalize="none" autocorrect="off" />
autocomplete="current-password" autocapitalize="none" autocorrect="off" />

<div class="personal-show-container">
<label for="pass2" class="hidden-visually"><?php p($l->t('New password'));?>: </label>
<input type="password" id="pass2" name="newpassword"
placeholder="<?php p($l->t('New password')); ?>"
data-typetoggle="#personal-show"
autocomplete="off" autocapitalize="none" autocorrect="off" />
autocomplete="new-password" autocapitalize="none" autocorrect="off" />
<input type="checkbox" id="personal-show" class="hidden-visually" name="show" /><label for="personal-show" class="personal-show-label"></label>
</div>

Expand Down
2 changes: 1 addition & 1 deletion core/js/dist/login.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/js/dist/login.js.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions core/src/components/login/LoginForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
v-model="user"
type="text"
name="user"
autocapitalize="off"
autocapitalize="none"
autocorrect="off"
:autocomplete="autoCompleteAllowed ? 'on' : 'off'"
:placeholder="t('core', 'Username or email')"
:aria-label="t('core', 'Username or email')"
Expand All @@ -75,7 +76,9 @@
:type="passwordInputType"
class="password-with-toggle"
name="password"
:autocomplete="autoCompleteAllowed ? 'on' : 'off'"
autocorrect="off"
autocapitalize="none"
:autocomplete="autoCompleteAllowed ? 'current-password' : 'off'"
:placeholder="t('core', 'Password')"
:aria-label="t('core', 'Password')"
required>
Expand Down
3 changes: 3 additions & 0 deletions core/src/components/login/UpdatePassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
v-model="password"
type="password"
name="password"
autocomplete="new-password"
autocapitalize="none"
autocorrect="off"
required
:placeholder="t('core', 'New password')">
</p>
Expand Down

0 comments on commit 317d973

Please sign in to comment.