From 8fdc7c5e4cc10d3b889c16ed133baf609529b5ce Mon Sep 17 00:00:00 2001 From: fff Date: Wed, 6 Jan 2021 11:52:31 +0800 Subject: [PATCH] Update TokenUtil.java setavatar --- .../src/main/java/org/springblade/auth/utils/TokenUtil.java | 1 + 1 file changed, 1 insertion(+) diff --git a/blade-auth/src/main/java/org/springblade/auth/utils/TokenUtil.java b/blade-auth/src/main/java/org/springblade/auth/utils/TokenUtil.java index 912a1a8..bd2ed75 100644 --- a/blade-auth/src/main/java/org/springblade/auth/utils/TokenUtil.java +++ b/blade-auth/src/main/java/org/springblade/auth/utils/TokenUtil.java @@ -72,6 +72,7 @@ public class TokenUtil { authInfo.setOauthId(userInfo.getOauthId()); authInfo.setAccount(user.getAccount()); authInfo.setUserName(user.getRealName()); + authInfo.setAvatar(user.getAvatar()); authInfo.setAuthority(Func.join(userInfo.getRoles())); authInfo.setAccessToken(accessToken.getToken()); authInfo.setExpiresIn(accessToken.getExpire());