Browse Source

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

pull/1397/head
BaiJiangJie 7 years ago
parent
commit
fcd17460d7
  1. 1
      apps/common/forms.py
  2. 2
      apps/common/templates/common/security_setting.html

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

2
apps/common/templates/common/security_setting.html

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

Loading…
Cancel
Save