Try to disable autocomplete on OTP field

This commit is contained in:
Melon 2023-11-09 11:01:19 +00:00
parent 4c0a266fb1
commit 68237dfc42
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -8,11 +8,11 @@
<h1>{{.ServiceName}}</h1>
</header>
<main>
<form method="POST" action="/login/otp">
<form method="POST" action="/login/otp" autocomplete="off">
<input type="hidden" name="redirect" value="{{.Redirect}}"/>
<div>
<label for="field_code">OTP Code:</label>
<input type="text" name="code" id="field_code" required pattern="[0-9]{6,8}" title="6/7/8 digit one time passcode"/>
<input type="text" name="code" id="field_code" required pattern="[0-9]{6,8}" title="6/7/8 digit one time passcode" autocomplete="off" aria-autocomplete="none" role="presentation"/>
</div>
<button type="submit">Login</button>
</form>