添加检查密码范围支持的特殊字符包括:~!@#$%^&*()-=_+

This commit is contained in:
RuoYi
2020-10-16 10:04:51 +08:00
parent 471c8825ba
commit 64c865cc70
5 changed files with 5 additions and 5 deletions

View File

@ -366,7 +366,7 @@ function checkpwd(chrtype, password) {
}
} else if (chrtype == 4) {
if(!$.common.charValid(password)){
$.modal.alertWarning("密码必须包含字母、数字、以及特殊符号-、_");
$.modal.alertWarning("密码必须包含字母、数字、以及特殊符号<font color='red'>~!@#$%^&*()-=_+</font>");
return false;
}
}

View File

@ -1637,7 +1637,7 @@ var table = {
},
// 英文、数字、特殊字符正则表达式,必须包含(字母,数字,特殊字符-_
charValid : function(text){
var patten = new RegExp(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[-_])[A-Za-z\d-_]{6,}$/);
var patten = new RegExp(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[~!@#\$%\^&\*\(\)\-=_\+])[A-Za-z\d~!@#\$%\^&\*\(\)\-=_\+]{6,}$/);
return patten.test(text);
},
}

View File

@ -73,7 +73,7 @@
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
sortName: "createTime",
sortName: "configId",
sortOrder: "asc",
modalName: "参数",
columns: [{

View File

@ -75,7 +75,7 @@
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
sortName: "createTime",
sortName: "dictId",
sortOrder: "asc",
modalName: "类型",
columns: [{