⬆️ Upgrading dependencies. BOM SR6
🐛 Fixing a bug. check token 登录提示
This commit is contained in:
1 parent
18ea0a61f3
commit
f87be5bfc6
3 files changed
+5
-4
No files matched your search
+4
-1
@@ -17,6 +17,7 @@
|
||||
|
||||
package com.pig4cloud.pigx.common.security.handler;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import org.springframework.context.ApplicationListener;
|
||||
import org.springframework.security.authentication.event.AuthenticationSuccessEvent;
|
||||
import org.springframework.security.core.Authentication;
|
||||
@@ -35,7 +36,9 @@ public abstract class AbstractAuthenticationSuccessEventHandler implements Appli
|
||||
@Override
|
||||
public void onApplicationEvent(AuthenticationSuccessEvent event) {
|
||||
Authentication authentication = (Authentication) event.getSource();
|
||||
handle(authentication);
|
||||
if (CollUtil.isNotEmpty(authentication.getAuthorities())) {
|
||||
handle(authentication);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
-2
@@ -30,7 +30,6 @@ import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.cache.CacheManager;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@@ -44,7 +43,6 @@ import java.util.Map;
|
||||
public class SysSocialDetailsServiceImpl extends ServiceImpl<SysSocialDetailsMapper, SysSocialDetails> implements SysSocialDetailsService {
|
||||
private final Map<String, LoginHandler> loginHandlerMap;
|
||||
private final CacheManager cacheManager;
|
||||
private final RestTemplate restTemplate;
|
||||
private final SysUserMapper sysUserMapper;
|
||||
|
||||
/**
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<properties>
|
||||
<spring-boot.version>2.0.7.RELEASE</spring-boot.version>
|
||||
<spring-cloud.version>Finchley.SR2</spring-cloud.version>
|
||||
<spring-platform.version>Cairo-SR5</spring-platform.version>
|
||||
<spring-platform.version>Cairo-SR6</spring-platform.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.compiler.source>1.8</maven.compiler.source>
|
||||
<maven.compiler.target>1.8</maven.compiler.target>
|
||||
|
||||
Reference in new issue
Block a user