Skip to content

Commit bc68bc1

Browse files
authored
Merge pull request #58 from cslzchen/feature/a11y-fix-follow-up
[ENG-3544] Fix autocomplete for password and one-time code input fields
2 parents ca771d1 + 1ad2d9c commit bc68bc1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/resources/templates/fragments/loginform.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
size="25"
102102
th:accesskey="#{screen.welcome.label.password.accesskey}"
103103
th:field="*{password}"
104-
autocomplete="new-password" />
104+
autocomplete="current-password" />
105105
<label for="password" class="mdc-floating-label" th:utext="#{screen.welcome.label.password}"></label>
106106
</div>
107107
<div class="mdc-text-field-helper-line caps-warn">

src/main/resources/templates/fragments/totploginform.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
maxlength="6"
8181
th:accesskey="#{screen.twofactor.label.onetimepassword.accesskey}"
8282
th:field="*{oneTimePassword}"
83-
autocomplete="new-password"
83+
autocomplete="one-time-code"
8484
autofocus />
8585
<label for="oneTimePassword" class="mdc-floating-label" th:utext="#{screen.twofactor.label.onetimepassword}"></label>
8686
</div>

0 commit comments

Comments
 (0)