⬆️ Upgrading dependencies. BOM SR6

🐛 Fixing a bug. check token 登录提示
This commit is contained in:
冷冷 committed 2018-12-09 16:39:06 +08:00
1 parent 18ea0a61f3
commit f87be5bfc6
3 files changed
+5 -4

No files matched your search

@@ -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);
}
}
/**