Skip to content

Commit

Permalink
Add autocomplete="one-time-code" for OTP form in login (keycloak#32580
Browse files Browse the repository at this point in the history
)

Closes keycloak#32579

Signed-off-by: Moritz Kobel <moritz.kobel@qube.ag>
  • Loading branch information
mkobel authored Sep 2, 2024
1 parent 943d532 commit db26a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/src/main/resources/theme/base/login/login-otp.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</div>

<div class="${properties.kcInputWrapperClass!}">
<input id="otp" name="otp" autocomplete="off" type="text" class="${properties.kcInputClass!}"
<input id="otp" name="otp" autocomplete="one-time-code" type="text" class="${properties.kcInputClass!}"
autofocus aria-invalid="<#if messagesPerField.existsError('totp')>true</#if>"
dir="ltr" />

Expand Down

0 comments on commit db26a9e

Please sign in to comment.