otp(minor): disable autocomplete for code input
This commit is contained in:
		| @ -34,8 +34,10 @@ class OTPVerifyForm(forms.Form): | |||||||
|     def __init__(self, *args, **kwargs): |     def __init__(self, *args, **kwargs): | ||||||
|         super().__init__(*args, **kwargs) |         super().__init__(*args, **kwargs) | ||||||
|         # This is a little helper so the field is focused by default |         # 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({ | ||||||
|         self.fields['code'].widget.attrs.update({'autofocus': 'autofocus'}) |             'autofocus': 'autofocus', | ||||||
|  |             'autocomplete': 'off' | ||||||
|  |         }) | ||||||
|  |  | ||||||
|  |  | ||||||
| class OTPSetupForm(forms.Form): | class OTPSetupForm(forms.Form): | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Langhammer, Jens
					Langhammer, Jens