diff --git a/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html b/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html index 261ac22c7..78c0b5102 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html @@ -123,7 +123,8 @@ 密码必须包含(字母,数字) 密码必须包含(字母,数字,特殊字符!@#$%^&*()-=_+) - + +
diff --git a/ruoyi-admin/src/main/resources/templates/system/user/profile/resetPwd.html b/ruoyi-admin/src/main/resources/templates/system/user/profile/resetPwd.html index 232480c13..32b5ffbb4 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/profile/resetPwd.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/profile/resetPwd.html @@ -1,103 +1,104 @@ - + -
-
- -
- -
- -
-
-
- -
- -
-
-
- -
- +
+ + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ - 密码只能为0-9数字 - 密码只能为a-z和A-Z字母 - 密码必须包含(字母,数字) - 密码必须包含(字母,数字,特殊字符!@#$%^&*()-=_+) + 密码只能为0-9数字 + 密码只能为a-z和A-Z字母 + 密码必须包含(字母,数字) + 密码必须包含(字母,数字,特殊字符!@#$%^&*()-=_+) - -
-
-
- -
- - 请再次输入您的密码 -
-
- -
- + + +
+
+
+ +
+ + 请再次输入您的密码 +
+
+ +
+ - + }, + focusCleanup: true + }); + + function submitHandler() { + 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()); + } + } +