...
|
...
|
@@ -853,16 +853,25 @@ layui.define(['table', 'form', 'admin', 'layer', 'upload', 'common', 'sessions', |
|
|
},
|
|
|
yes: function (index, layero) {
|
|
|
var password = $('#userReSetPwd').val();
|
|
|
var flag = false;
|
|
|
//验证密码等级是否满足
|
|
|
var flag = new RegExp(pattern).test(password);
|
|
|
if (!flag){
|
|
|
$('.deptTips').html(patternTips.replace('密码格式为:',''));
|
|
|
return;
|
|
|
}
|
|
|
if (checkHas(passwords,password)){
|
|
|
$('.deptTips').html('不能使用最近5次密码');
|
|
|
return;
|
|
|
if (pattern != ''){
|
|
|
flag = new RegExp(pattern).test(password);
|
|
|
if (!flag){
|
|
|
$('.deptTips').html(patternTips.replace('密码格式为:',''));
|
|
|
return;
|
|
|
}
|
|
|
}else{
|
|
|
if (password.trim().length <4 || password.trim().length >20){
|
|
|
$('.deptTips').html('密码必须为4-20位!');
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
//管理员重置密码,不用做最近5次验证
|
|
|
// if (checkHas(passwords,password)){
|
|
|
// $('.deptTips').html('不能使用最近5次密码');
|
|
|
// return;
|
|
|
// }
|
|
|
resetPwd(id,password);
|
|
|
}
|
|
|
});
|
...
|
...
|
|