[Update] 增加密码校验规则中密码最小长度限制6位

pull/1397/head
BaiJiangJie 2018-06-05 17:56:58 +08:00
parent 4c4430661b
commit fcd17460d7
2 changed files with 2 additions and 1 deletions

View File

@ -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(

View File

@ -12,7 +12,7 @@
<div class="panel-options">
<ul class="nav nav-tabs">
<li>
<a href="" class="text-center"><i class="fa fa-cubes"></i> {% trans 'Basic setting' %}</a>
<a href="{% url 'settings:basic-setting' %}" class="text-center"><i class="fa fa-cubes"></i> {% trans 'Basic setting' %}</a>
</li>
<li>
<a href="{% url 'settings:email-setting' %}" class="text-center"><i class="fa fa-envelope"></i> {% trans 'Email setting' %} </a>