Merge remote-tracking branch 'origin/master' into feature_user-session-timeout

This commit is contained in:
Lyon 2021-03-09 20:24:07 +08:00
commit 9bf4430553

View File

@ -56,7 +56,7 @@ public class SecurityFrameworkUtils {
if (authentication == null) {
return null;
}
return (LoginUser) authentication.getPrincipal();
return authentication.getPrincipal() instanceof LoginUser ? (LoginUser) authentication.getPrincipal() : null;
}
/**