From 6a1aace1c0526e62c94c97738c27a8186bc8899b Mon Sep 17 00:00:00 2001 From: flykhan Date: Thu, 23 Feb 2023 08:51:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E5=86=8C=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/user/account/RegisterServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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", "密码过长");