diff options
author | Carl Schwan <carl@carlschwan.eu> | 2021-07-13 17:11:48 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2021-10-22 12:18:26 +0200 |
commit | b7a35afcf140c4ee442acd2ff4f9f6afa0533706 (patch) | |
tree | a5d9e8da09ad6b11954eb9039a106984545cdc60 /apps/settings/templates | |
parent | a9fe0fc5274fe6190c394fdb201cbb0c9f5c5976 (diff) | |
download | nextcloud-server-b7a35afcf140c4ee442acd2ff4f9f6afa0533706.tar.gz nextcloud-server-b7a35afcf140c4ee442acd2ff4f9f6afa0533706.zip |
Add autocompletion for password reset
Using autocomplete="current-password" and autocomplete="new-password"
will help browser with integrated password managers to generate safe
password for the users.
See https://developer.apple.com/documentation/security/password_autofill/enabling_password_autofill_on_an_html_input_element
and https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input/password#allowing_autocomplete.
Also unify autocapitalize="none" autocorrect="off" behavior in a few
other places for password input fields.
Close #27885
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Co-Authored-By: Julien Veyssier <eneiluj@posteo.net>
Co-Authored-By: Pytal <24800714+Pytal@users.noreply.github.com>
Diffstat (limited to 'apps/settings/templates')
-rw-r--r-- | apps/settings/templates/settings/personal/security/password.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/settings/templates/settings/personal/security/password.php b/apps/settings/templates/settings/personal/security/password.php index 5ffa9aaf8bc..88536ab6b23 100644 --- a/apps/settings/templates/settings/personal/security/password.php +++ b/apps/settings/templates/settings/personal/security/password.php @@ -41,14 +41,14 @@ if ($_['passwordChangeSupported']) { <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> |