Fix groups in GetUserInfo()

This commit is contained in:
Yang Luo
2023-06-19 11:06:55 +08:00
parent 29fc820578
commit 58aa7dba6a

View File

@ -745,7 +745,7 @@ func GetUserInfo(user *User, scope string, aud string, host string) *Userinfo {
resp.Name = user.Name
resp.DisplayName = user.DisplayName
resp.Avatar = user.Avatar
resp.Groups = []string{user.Owner}
resp.Groups = user.Groups
}
if strings.Contains(scope, "email") {
resp.Email = user.Email