⬆️ 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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user