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

This commit is contained in:
RuoYi
2020-08-03 12:06:47 +08:00
parent 8bf5140a72
commit 43788e0590
4 changed files with 4 additions and 4 deletions

View File

@ -221,7 +221,7 @@
});
function submitHandler() {
var chrtype = [[${@config.getKey('sys.account.chrtype')}]];
var chrtype = [[${#strings.defaultString(@config.getKey('sys.account.chrtype'), 0)}]];
var password = $("#password").val();
if ($.validate.form() && checkpwd(chrtype, password)) {
var data = $("#form-user-add").serializeArray();

View File

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

View File

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