浏览代码

修改前端密码长度校验和错误提示不符问题

RuoYi 4 年之前
父节点
当前提交
1f0b417d9d

+ 1 - 1
ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html

@@ -270,7 +270,7 @@
 	            },
 	            newPassword: {
 	                required: "请输入新密码",
-	                minlength: "密码不能小于6个字符",
+	                minlength: "密码不能小于5个字符",
 	                maxlength: "密码不能大于20个字符"
 	            },
 	            confirmPassword: {

+ 1 - 1
ruoyi-admin/src/main/resources/templates/system/user/profile/resetPwd.html

@@ -69,7 +69,7 @@
 	            },
 	            newPassword: {
 	                required: "请输入新密码",
-	                minlength: "密码不能小于6个字符",
+	                minlength: "密码不能小于5个字符",
 	                maxlength: "密码不能大于20个字符"
 	            },
 	            confirmPassword: {