mirror of
https://github.com/pi-hole/web.git
synced 2025-12-19 18:28:24 +00:00
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:
2
login.lp
2
login.lp
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user