From f884fc927f776d867a88f391ed338a408d646033 Mon Sep 17 00:00:00 2001 From: "Byron.Liu" Date: Mon, 7 Dec 2020 11:33:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=86=E7=A0=81=E5=BC=BA=E5=BA=A6=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E8=8C=83=E5=9B=B4=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/user/profile/profile.html | 3 +- .../system/user/profile/resetPwd.html | 179 +++++++++--------- 2 files changed, 92 insertions(+), 90 deletions(-) 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()); + } + } +