bonus_houqin

This commit is contained in:
sxu 2025-02-16 08:22:11 +08:00
parent 9d6bffa41b
commit 4de7f35551
1 changed files with 5 additions and 5 deletions

View File

@ -50,11 +50,11 @@ public class CustPhonePasswordLoginStrategy implements LoginStrategy {
// 处理IP校验
//passwordValidatorService.validateIpBlacklist(user.getUserName());
// 验证密码
String decodedPassword = AesEncryptUtil.aesDecode(password);
if (!encoder.matches(decodedPassword, user.getPassword())) {
throw new ServiceException("密码错误");
}
//passwordService.validate(user, password, System.currentTimeMillis());
String inputPassword = AesEncryptUtil.aesDecode(password);
passwordService.validate(user, inputPassword, System.currentTimeMillis());
// if (!encoder.matches(inputPassword, user.getPassword())) {
// throw new ServiceException("密码错误");
// }
//校验用户启用状态
//passwordValidatorService.validateUserStatus(user.getUserName(), user);