Update TokenUtil.java

setavatar
This commit is contained in:
fff 2021-01-06 11:52:31 +08:00 committed by GitHub
parent 16cb17e6a2
commit 8fdc7c5e4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,6 +72,7 @@ public class TokenUtil {
authInfo.setOauthId(userInfo.getOauthId()); authInfo.setOauthId(userInfo.getOauthId());
authInfo.setAccount(user.getAccount()); authInfo.setAccount(user.getAccount());
authInfo.setUserName(user.getRealName()); authInfo.setUserName(user.getRealName());
authInfo.setAvatar(user.getAvatar());
authInfo.setAuthority(Func.join(userInfo.getRoles())); authInfo.setAuthority(Func.join(userInfo.getRoles()));
authInfo.setAccessToken(accessToken.getToken()); authInfo.setAccessToken(accessToken.getToken());
authInfo.setExpiresIn(accessToken.getExpire()); authInfo.setExpiresIn(accessToken.getExpire());