fix 修复 用户注册接口校验用户名不区分租户问题

This commit is contained in:
疯狂的狮子Li
2023-10-25 22:18:45 +08:00
parent ee51fc86cc
commit 51d1166f45
3 changed files with 6 additions and 18 deletions

View File

@@ -136,10 +136,7 @@ public class SysLoginService {
remoteUserBo.setNickName(username);
remoteUserBo.setPassword(BCrypt.hashpw(password));
remoteUserBo.setUserType(userType);
// 校验用户名是否唯一
if (!remoteUserService.checkUserNameUnique(remoteUserBo)) {
throw new UserException("user.register.save.error", username);
}
boolean regFlag = remoteUserService.registerUserInfo(remoteUserBo);
if (!regFlag) {
throw new UserException("user.register.error");