We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 471f06f commit a8d453aCopy full SHA for a8d453a
mfa/forms.py
@@ -8,7 +8,7 @@ class MFABaseForm(forms.Form):
8
def __init__(self, validate_code=None, **kwargs):
9
self.validate_code = validate_code
10
super().__init__(**kwargs)
11
- self.fields['code'].widget.attrs.update({'autocomplete': 'off'})
+ self.fields['code'].widget.attrs.update({'autocomplete': 'one-time-code'})
12
13
def clean(self):
14
cleaned_data = super().clean()
0 commit comments