浏览代码

场景查看权限校验

dengsixing 1 年之前
父节点
当前提交
866d5d2fd3
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/fdkankan/scene/Interceptor/CheckViewBizAuthAspect.java

+ 2 - 2
src/main/java/com/fdkankan/scene/Interceptor/CheckViewBizAuthAspect.java

@@ -189,9 +189,9 @@ public class CheckViewBizAuthAspect {
 						throw new BusinessException(ErrorCode.PASSWORD_ERROR);
 					}
 					//模拟前端密码加密规则生成前端密码
-					password = SecurityUtil.MD52(Base64Converter.decode(password));
+					String passwordEncode = SecurityUtil.MD52(Base64Converter.decode(password));
 					//数据库密码比对
-					if(!password.equals(jyUser.getRyPassword())){
+					if(!passwordEncode.equals(jyUser.getRyPassword())){
 						throw new BusinessException(ErrorCode.PASSWORD_ERROR);
 					}
 					headers.put("userName", userName);