Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit e061ac4

Browse files
author
Billy Clark
committed
one-time use codes don't need to be remembered by browser
1 parent 828003c commit e061ac4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

themes/material/mfa/prompt-for-mfa-backupcode.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040
<?= $this->t('{material:mfa:backupcode_input}') ?>
4141
</label>
4242
<input name="mfaSubmission" class="mdl-textfield__input" autofocus
43-
id="mfaSubmission"/>
44-
<!-- TODO: don't remember codes here since they are one-time use anyway-->
43+
id="mfaSubmission" autocomplete="off" />
4544
</div>
4645
</div>
4746

themes/material/mfa/prompt-for-mfa-totp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<?= $this->t('{material:mfa:totp_input}') ?>
4040
</label>
4141
<input name="mfaSubmission" class="mdl-textfield__input" autofocus
42-
id="mfaSubmission"/>
42+
id="mfaSubmission" autocomplete="off" />
4343
</div>
4444
</div>
4545

0 commit comments

Comments
 (0)