浏览代码

token时间过短

LLL 1 年之前
父节点
当前提交
12cf54f29f
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroRealm.java

+ 5 - 5
jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroRealm.java

@@ -132,11 +132,11 @@ public class ShiroRealm extends AuthorizingRealm {
         if (loginUser.getStatus() != 1) {
             throw new AuthenticationException("账号已被锁定,请联系管理员!");
         }
-        // 校验token是否超时失效 & 或者账号密码是否错误
-        if (!jwtTokenRefresh(token, username, loginUser.getPassword())) {
-            throw new AuthenticationException(CommonConstant.TOKEN_IS_INVALID_MSG);
-        }
-        //update-begin-author:taoyan date:20210609 for:校验用户的tenant_id和前端传过来的是否一致
+//        // 校验token是否超时失效 & 或者账号密码是否错误
+//        if (!jwtTokenRefresh(token, username, loginUser.getPassword())) {
+//            throw new AuthenticationException(CommonConstant.TOKEN_IS_INVALID_MSG);
+//        }
+//        //update-begin-author:taoyan date:20210609 for:校验用户的tenant_id和前端传过来的是否一致
         String userTenantIds = loginUser.getRelTenantIds();
         if(oConvertUtils.isNotEmpty(userTenantIds)){
             String contextTenantId = TenantContext.getTenant();