Add autocomplete feature for password fields in newPassword form
authorJoshua Rüsweg <josh@bastelstu.be>
Mon, 27 Aug 2018 11:22:01 +0000 (13:22 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Mon, 27 Aug 2018 11:22:01 +0000 (13:22 +0200)
See #2694

com.woltlab.wcf/templates/newPassword.tpl

index 9441088a877b2c29aa0a044765c76a5878d61f45..558f5044a4dd54e8b9e3b5b0f9f70241f63352ac 100644 (file)
@@ -9,7 +9,7 @@
                <dl{if $errorField == 'newPassword'} class="formError"{/if}>
                        <dt><label for="newPassword">{lang}wcf.user.newPassword{/lang}</label></dt>
                        <dd>
-                               <input type="password" id="newPassword" name="newPassword" value="{$newPassword}" class="medium">
+                               <input type="password" id="newPassword" name="newPassword" value="{$newPassword}" class="medium" autocomplete="new-password">
                                        
                                {if $errorField == 'newPassword'}
                                        <small class="innerError">
@@ -23,7 +23,7 @@
                <dl{if $errorField == 'confirmNewPassword'} class="formError"{/if}>
                        <dt><label for="confirmNewPassword">{lang}wcf.user.confirmPassword{/lang}</label></dt>
                        <dd>
-                               <input type="password" id="confirmNewPassword" name="confirmNewPassword" value="{$confirmNewPassword}" class="medium">
+                               <input type="password" id="confirmNewPassword" name="confirmNewPassword" value="{$confirmNewPassword}" class="medium" autocomplete="new-password">
                                        
                                {if $errorField == 'confirmNewPassword'}
                                        <small class="innerError">