diff --git a/passbook/factors/otp/forms.py b/passbook/factors/otp/forms.py index 16a37908a..fdc129d28 100644 --- a/passbook/factors/otp/forms.py +++ b/passbook/factors/otp/forms.py @@ -34,8 +34,10 @@ class OTPVerifyForm(forms.Form): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) # This is a little helper so the field is focused by default - # TODO: Tell browser to not suggest any values - self.fields['code'].widget.attrs.update({'autofocus': 'autofocus'}) + self.fields['code'].widget.attrs.update({ + 'autofocus': 'autofocus', + 'autocomplete': 'off' + }) class OTPSetupForm(forms.Form):