用户密码支持自定义配置规则

This commit is contained in:
RuoYi
2020-08-03 11:40:51 +08:00
parent 3d2d88287a
commit 8bf5140a72
7 changed files with 58 additions and 5 deletions

View File

@@ -283,7 +283,9 @@
});
function submitChangPassword () {
if ($.validate.form("form-user-resetPwd")) {
var chrtype = [[${@config.getKey('sys.account.chrtype')}]];
var password = $("#newPassword").val();
if ($.validate.form("form-user-resetPwd") && checkpwd(chrtype, password)) {
$.operate.saveModal(ctx + "system/user/profile/resetPwd", $('#form-user-resetPwd').serialize());
}
}