Skip to content

Commit

Permalink
Disable autocomplete on 2FA input element (#1133)
Browse files Browse the repository at this point in the history
2FA codes change every login. So there is no need to save entered values in browser and suggest them again during future logins.

Co-authored-by: sro0 <>
  • Loading branch information
z-e-r-0-t committed Apr 29, 2023
1 parent 9c9771a commit 640466f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/Froxlor/login/enter2fa.html.twig
Expand Up @@ -12,7 +12,7 @@

<div class="mb-3">
<label for="2fa_code" class="col-form-label">{{ lng('login.2facode') }}</label>
<input class="form-control" type="text" name="2fa_code" id="2fa_code" value="" autofocus required/>
<input class="form-control" type="text" name="2fa_code" id="2fa_code" value="" autocomplete="off" autofocus required/>
</div>

</div>
Expand Down

0 comments on commit 640466f

Please sign in to comment.