ソースを参照

改回原样token时间过短

LLL 1 年間 前
コミット
3476b88611
共有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();