From 1132c6a4e4b795a91c322ea7c74240f1ab791915 Mon Sep 17 00:00:00 2001 From: ibuler Date: Wed, 24 Nov 2021 12:47:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20mfa=20radius=20?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/forms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/authentication/forms.py b/apps/authentication/forms.py index d8533536d..16ca659c0 100644 --- a/apps/authentication/forms.py +++ b/apps/authentication/forms.py @@ -43,8 +43,8 @@ class UserLoginForm(forms.Form): class UserCheckOtpCodeForm(forms.Form): - code = forms.CharField(label=_('MFA Code'), max_length=6, required=False) - mfa_type = forms.CharField(label=_('MFA type'), max_length=6) + code = forms.CharField(label=_('MFA Code'), max_length=128, required=False) + mfa_type = forms.CharField(label=_('MFA type'), max_length=128) class CustomCaptchaTextInput(CaptchaTextInput): @@ -57,7 +57,7 @@ class CaptchaMixin(forms.Form): class ChallengeMixin(forms.Form): challenge = forms.CharField( - label=_('MFA code'), max_length=6, required=False, + label=_('MFA code'), max_length=128, required=False, widget=forms.TextInput(attrs={ 'placeholder': _("Dynamic code"), 'style': 'width: 50%'