From 1132c6a4e4b795a91c322ea7c74240f1ab791915 Mon Sep 17 00:00:00 2001 From: ibuler Date: Wed, 24 Nov 2021 12:47:28 +0800 Subject: [PATCH 1/2] =?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%' From 88ea7ae149b9d9a17a0e9324ab63f2cd992ba6c6 Mon Sep 17 00:00:00 2001 From: jiangweidong Date: Wed, 17 Nov 2021 15:45:42 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E4=BA=91=E7=AE=A1=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E4=B8=AD=E5=BF=83=E6=94=AF=E6=8C=81OpenStack=E8=B5=84?= =?UTF-8?q?=E4=BA=A7=E5=90=8C=E6=AD=A5=EF=BC=8C=E6=89=80=E9=9C=80python?= =?UTF-8?q?=E5=BA=93=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- requirements/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements/requirements.txt b/requirements/requirements.txt index b3873af1d..455bcc5dd 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -120,3 +120,4 @@ psycopg2-binary==2.9.1 alibabacloud_dysmsapi20170525==2.0.2 geoip2==4.4.0 html2text==2020.1.16 +python-novaclient==11.0.1