LoginUser

This commit is contained in:
sxu 2025-02-14 19:34:26 +08:00
parent 491ce132d6
commit 927a68fa63
1 changed files with 5 additions and 5 deletions

View File

@ -32,16 +32,16 @@ public class CustPhoneOtpLoginStrategy implements LoginStrategy {
throw new ServiceException("用户不存在/验证码错误"); throw new ServiceException("用户不存在/验证码错误");
} }
passwordValidatorService.checkPhoneCaptcha(phone, otp); passwordValidatorService.checkPhoneCaptcha(phone, otp);
R<LoginUser> userResult = remoteUserService.getUserInfoByPhone(phone, SecurityConstants.INNER); R<LoginUser> userResult = remoteUserService.getCustInfoByPhone(phone, SecurityConstants.INNER);
//验证用户是否存在 //验证用户是否存在
passwordValidatorService.validateUserResult(phone, userResult); passwordValidatorService.validateUserResult(phone, userResult);
LoginUser userInfo = userResult.getData(); LoginUser userInfo = userResult.getData();
SysUser user = userInfo.getSysUser(); //SysUser user = userInfo.getSysUser();
passwordValidatorService.validateApprovalStatus(phone, user); //passwordValidatorService.validateApprovalStatus(phone, user);
// 验证用户状态 // 验证用户状态
passwordValidatorService.validateUserStatus(phone, user); //passwordValidatorService.validateUserStatus(phone, user);
passwordValidatorService.processLoginBlackList(user); //passwordValidatorService.processLoginBlackList(user);
//返回信息 //返回信息
return userInfo; return userInfo;
} }