xucaiqin 2 lat temu
rodzic
commit
4cd35674af

+ 1 - 1
iot-framework/iot-starter-satoken/src/main/java/com/middle/platform/satoken/config/SaTokenConfig.java

@@ -17,7 +17,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
 public class SaTokenConfig implements WebMvcConfigurer {
     private final String[] exclude = new String[]{
             RpcConstants.RPC_API_PREFIX + "/**",
-            "/auth/login", "/auth/logout", "/**"
+            "/auth/login", "/auth/logout"
     };
 
     @Bean

+ 1 - 1
iot-module/iot-module-auth/iot-module-auth-biz/src/main/java/com/middle/platform/auth/biz/service/AuthService.java

@@ -40,7 +40,7 @@ public class AuthService {
         }
         if (HashUtil.argon2Match(loginPara.getPassword(), userDto.getPassword())) {
             StpUtil.login(userDto.getId());
-            return true;
+            return StpUtil.getTokenInfo();
         }
         throw new BusinessException("账号或密码不正确");
     }