Skip to content

Commit

Permalink
use autocomplete="one-time-code"
Browse files Browse the repository at this point in the history
  • Loading branch information
xi committed Nov 1, 2024
1 parent 471f06f commit a8d453a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mfa/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class MFABaseForm(forms.Form):
def __init__(self, validate_code=None, **kwargs):
self.validate_code = validate_code
super().__init__(**kwargs)
self.fields['code'].widget.attrs.update({'autocomplete': 'off'})
self.fields['code'].widget.attrs.update({'autocomplete': 'one-time-code'})

def clean(self):
cleaned_data = super().clean()
Expand Down

0 comments on commit a8d453a

Please sign in to comment.