修改注册密码规则

This commit is contained in:
flykhan 2023-02-23 08:51:23 +08:00
parent 0230d316fb
commit 6a1aace1c0
1 changed files with 2 additions and 2 deletions

View File

@ -62,8 +62,8 @@ public class RegisterServiceImpl implements RegisterService {
else if (!confirmedPassword.equals(password)) { else if (!confirmedPassword.equals(password)) {
map.put("error_message", "两次密码输入不一致"); map.put("error_message", "两次密码输入不一致");
return map; return map;
} else if (password.length() < 6) { } else if (password.length() < 2) {
map.put("error_message", "密码不能少于6"); map.put("error_message", "密码不能少于2");
return map; return map;
} else if (password.length() > 100) { } else if (password.length() > 100) {
map.put("error_message", "密码过长"); map.put("error_message", "密码过长");