|
@@ -195,14 +195,10 @@ public class CheckViewBizAuthAspect {
|
|
|
}
|
|
|
|
|
|
//如果授权校验通过,校验密码是否正确
|
|
|
- User user = userService.findByUserName(userName);
|
|
|
- if(Objects.isNull(user)){
|
|
|
- throw new BusinessException(ErrorCode.PASSWORD_ERROR);
|
|
|
- }
|
|
|
//模拟前端密码加密规则生成前端密码
|
|
|
- password = SecurityUtil.MD5(Base64Converter.decode(password));
|
|
|
+ password = SecurityUtil.MD52(Base64Converter.decode(password));
|
|
|
//数据库密码比对
|
|
|
- if(Objects.isNull(user) || !password.equals(user.getPassword())){
|
|
|
+ if(!password.equals(jyUser.getRyPassword())){
|
|
|
throw new BusinessException(ErrorCode.PASSWORD_ERROR);
|
|
|
}
|
|
|
}
|