Commit 8afa1444 authored by lee_mingzhu's avatar lee_mingzhu

修改注册时密码长度的提示信息,和前端保持统一

parent 75dd2e38
...@@ -177,9 +177,9 @@ public class UserController implements IBaseController { ...@@ -177,9 +177,9 @@ public class UserController implements IBaseController {
LOGGER.info("用户快速注册失败,密码不能为空, registerFrom:{}, phoneNo:{}, password:{}", registerFrom, phoneNo, password); LOGGER.info("用户快速注册失败,密码不能为空, registerFrom:{}, phoneNo:{}, password:{}", registerFrom, phoneNo, password);
return JsonResult.buildErrorStateResult("密码不能为空", null); return JsonResult.buildErrorStateResult("密码不能为空", null);
} }
if (password.length() < 6 || password.length() > 20) { if (password.length() < 6 || password.length() > 12) {
LOGGER.info("用户快速注册失败,密码长度须在6位至20位之间, registerFrom:{}, phoneNo:{}, password:{}", registerFrom, phoneNo, password); LOGGER.info("用户快速注册失败,密码长度须在6位至12位之间, registerFrom:{}, phoneNo:{}, password:{}", registerFrom, phoneNo, password);
return JsonResult.buildErrorStateResult("密码长度须在6位至20位之间", null); return JsonResult.buildErrorStateResult("密码应为6-12位", null);
} }
if (null == registerFrom) { if (null == registerFrom) {
registerFrom = 1L; registerFrom = 1L;
...@@ -225,9 +225,9 @@ public class UserController implements IBaseController { ...@@ -225,9 +225,9 @@ public class UserController implements IBaseController {
LOGGER.info("用户注册失败,密码不能为空, registerFrom:{}, phoneNo:{}, password:{}", registerFrom, phoneNo, password); LOGGER.info("用户注册失败,密码不能为空, registerFrom:{}, phoneNo:{}, password:{}", registerFrom, phoneNo, password);
return JsonResult.buildErrorStateResult("密码不能为空", null); return JsonResult.buildErrorStateResult("密码不能为空", null);
} }
if (password.length() < 6 || password.length() > 20) { if (password.length() < 6 || password.length() > 12) {
LOGGER.info("用户注册失败,密码长度须在6位至20位之间, registerFrom:{}, phoneNo:{}, password:{}", registerFrom, phoneNo, password); LOGGER.info("用户注册失败,密码长度须在6位至12位之间, registerFrom:{}, phoneNo:{}, password:{}", registerFrom, phoneNo, password);
return JsonResult.buildErrorStateResult("密码长度须在6位至20位之间", null); return JsonResult.buildErrorStateResult("密码应为6-12位", null);
} }
if (null == registerFrom) { if (null == registerFrom) {
registerFrom = 1L; registerFrom = 1L;
...@@ -299,8 +299,8 @@ public class UserController implements IBaseController { ...@@ -299,8 +299,8 @@ public class UserController implements IBaseController {
if (StringUtils.isEmpty(password)) { if (StringUtils.isEmpty(password)) {
return JsonResult.buildErrorStateResult("密码不能为空", null); return JsonResult.buildErrorStateResult("密码不能为空", null);
} }
if (password.length() < 6 || password.length() > 20) { if (password.length() < 6 || password.length() > 12) {
return JsonResult.buildErrorStateResult("密码长度须在6位至20位之间", null); return JsonResult.buildErrorStateResult("密码应为6-12位", null);
} }
if (!smsService.validRegisterOrResetPasswdVerificationCode(phoneNo, verificationCode)) { if (!smsService.validRegisterOrResetPasswdVerificationCode(phoneNo, verificationCode)) {
return JsonResult.buildErrorStateResult("短信验证码错误", null); return JsonResult.buildErrorStateResult("短信验证码错误", null);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment