mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
fix: handle WeChat username conflicts (#771)
* handle username conflicts * Update auth.go Co-authored-by: roobtyan <roobtyan@qq.com> Co-authored-by: Yang Luo <hsluoyz@qq.com>
This commit is contained in:
@ -185,7 +185,7 @@ func (idp *WeChatIdProvider) GetUserInfo(token *oauth2.Token) (*UserInfo, error)
|
||||
|
||||
userInfo := UserInfo{
|
||||
Id: id,
|
||||
Username: id,
|
||||
Username: wechatUserInfo.Nickname,
|
||||
DisplayName: wechatUserInfo.Nickname,
|
||||
AvatarUrl: wechatUserInfo.Headimgurl,
|
||||
}
|
||||
|
Reference in New Issue
Block a user