Sfoglia il codice sorgente

【修改】个人中心-修改密码:增加强密码验证;

西昌分支
dyy 6 mesi fa
parent
commit
9da00bcffc
2 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. +4
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-validator-helper.js
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/PassWordForm.cshtml

+ 4
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-validator-helper.js Vedi File

@@ -152,7 +152,10 @@
return learun.validator.validRegOrNull(obj, /^\d{15}(\d{2}[A-Za-z0-9;])?$/, '必须为身份证格式或空');
},
isStrongPwd: function (obj) {//判断是否为数字、大小写字母、特殊字符组成的密码
return learun.validator.validRegOrNull(obj, /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*,\.])[0-9a-zA-Z!@#$%^&*,\.]{8,20}$/, '8-20位必须同时包含大小写字母、数字、特殊符号');
return learun.validator.validReg(obj, /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*,\.])[0-9a-zA-Z!@#$%^&*,\.]{8,20}$/, '8-20位必须同时包含大小写字母、数字、特殊符号');
},
isStrongPwdOrNull: function (obj) {//判断是否为数字、大小写字母、特殊字符组成的密码或者null,空
return learun.validator.validRegOrNull(obj, /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*,\.])[0-9a-zA-Z!@#$%^&*,\.]{8,20}$/, '8-20位必须同时包含大小写字母、数字、特殊符号或空');
},
isIP: function (obj) {//判断是否为IP地址格式
var res = { code: true, msg: '' };


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/PassWordForm.cshtml Vedi File

@@ -14,7 +14,7 @@
</div>
<div class="lr-form-item">
<div class="lr-form-item-title">新密码<font face="宋体">*</font></div>
<input id="NewPassword" type="password" class="form-control" isvalid="yes" checkexpession="NotNull" />
<input id="NewPassword" type="password" class="form-control" isvalid="yes" checkexpession="StrongPwd" />
<div class="tip"></div>
</div>
<div class=" lr-form-item">


Caricamento…
Annulla
Salva