From fcd17460d74dd4b3ab06e2e46e5a18c7ac59424b Mon Sep 17 00:00:00 2001 From: BaiJiangJie Date: Tue, 5 Jun 2018 17:56:58 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E5=A2=9E=E5=8A=A0=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E8=A7=84=E5=88=99=E4=B8=AD=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E6=9C=80=E5=B0=8F=E9=95=BF=E5=BA=A6=E9=99=90=E5=88=B66?= =?UTF-8?q?=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/forms.py | 1 + apps/common/templates/common/security_setting.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/common/forms.py b/apps/common/forms.py index 4f4eefc23..87b2f4f12 100644 --- a/apps/common/forms.py +++ b/apps/common/forms.py @@ -182,6 +182,7 @@ class SecuritySettingForm(BaseForm): # 最小长度 SECURITY_PASSWORD_MIN_LENGTH = forms.IntegerField( initial=6, label=_("Password minimum length"), + min_value=6 ) # 大写字母 SECURITY_PASSWORD_UPPER_CASE = forms.BooleanField( diff --git a/apps/common/templates/common/security_setting.html b/apps/common/templates/common/security_setting.html index d2c436304..e84f5bc72 100644 --- a/apps/common/templates/common/security_setting.html +++ b/apps/common/templates/common/security_setting.html @@ -12,7 +12,7 @@