From 5b516094a02adededea0ef80f7224acc8b344c9e Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Wed, 22 Jan 2025 15:58:56 +0800 Subject: [PATCH] :bug: Add compability on userinfo --- pkg/internal/http/api/accounts_api.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/internal/http/api/accounts_api.go b/pkg/internal/http/api/accounts_api.go index 7dbed14..b547c59 100644 --- a/pkg/internal/http/api/accounts_api.go +++ b/pkg/internal/http/api/accounts_api.go @@ -2,11 +2,12 @@ package api import ( "fmt" - "git.solsynth.dev/hypernet/nexus/pkg/nex/sec" "strconv" "strings" "time" + "git.solsynth.dev/hypernet/nexus/pkg/nex/sec" + "git.solsynth.dev/hypernet/passport/pkg/internal/http/exts" "git.solsynth.dev/hypernet/passport/pkg/authkit/models" @@ -74,6 +75,7 @@ func getUserinfo(c *fiber.Ctx) error { resp["name"] = data.Name resp["email"] = data.GetPrimaryEmail().Content resp["preferred_username"] = data.Nick + resp["profile"] = data.Name if data.Avatar != nil { resp["picture"] = *data.GetAvatar()