bonus_houqin
This commit is contained in:
parent
9d6bffa41b
commit
4de7f35551
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue