Enable one-time code autofill for TOTP input

Replaced autocomplete="off" with autocomplete="one-time-code" to allow
browsers and mobile devices to suggest one-time passcodes automatically,
improving the user experience.

Signed-off-by: Sebastian Livoni <29739749+sebastianlivoni@users.noreply.github.com>
This commit is contained in:
Sebastian Livoni
2025-11-12 18:13:55 +01:00
parent 1d7d203c79
commit d1f00195f2

View File

@@ -53,7 +53,7 @@ mg.include('scripts/lua/header.lp','r')
</div>
<div class="form-group hidden" id="totp_input">
<div class="input-group">
<input type="text" id="totp" size="6" maxlen="6" class="form-control totp_token" placeholder="123456" value="" spellcheck="false" autofocus autocomplete="off">
<input type="text" id="totp" size="6" maxlen="6" class="form-control totp_token" placeholder="123456" value="" spellcheck="false" autofocus autocomplete="one-time-code">
<div class="input-group-addon" data-toggle="tooltip" data-placement="auto" title="TOTP verification code">
<i class="fa fa-clock-rotate-left"></i>
</div>