Commit ab26a51e by Kálmán Viktor

dashboard: autofocus 2fa input on page load

parent 56975960
Pipeline #215 passed with stage
in 0 seconds
...@@ -1671,7 +1671,9 @@ class TwoFactorForm(ModelForm): ...@@ -1671,7 +1671,9 @@ class TwoFactorForm(ModelForm):
class TwoFactorConfirmationForm(forms.Form): class TwoFactorConfirmationForm(forms.Form):
confirmation_code = forms.CharField( confirmation_code = forms.CharField(
label=_('Two-factor authentication passcode'), label=_('Two-factor authentication passcode'),
help_text=_("Get the code from your authenticator.")) help_text=_("Get the code from your authenticator."),
widget=forms.TextInput(attrs={'autofocus': True})
)
def __init__(self, user, *args, **kwargs): def __init__(self, user, *args, **kwargs):
self.user = user self.user = user
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment