diff --git a/backend/src/main/java/com/kob/backend/service/impl/user/account/RegisterServiceImpl.java b/backend/src/main/java/com/kob/backend/service/impl/user/account/RegisterServiceImpl.java index e1d7507..5b4f69d 100644 --- a/backend/src/main/java/com/kob/backend/service/impl/user/account/RegisterServiceImpl.java +++ b/backend/src/main/java/com/kob/backend/service/impl/user/account/RegisterServiceImpl.java @@ -62,8 +62,8 @@ public class RegisterServiceImpl implements RegisterService { else if (!confirmedPassword.equals(password)) { map.put("error_message", "两次密码输入不一致"); return map; - } else if (password.length() < 6) { - map.put("error_message", "密码不能少于6位"); + } else if (password.length() < 2) { + map.put("error_message", "密码不能少于2位"); return map; } else if (password.length() > 100) { map.put("error_message", "密码过长");