From bd4907dfe537d9d33677e88ce420c7a64c044c0a Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Mon, 17 Jul 2023 16:25:47 +0800 Subject: [PATCH] fix: add fallback for github account which maybe not include name in github --- server/plugins/com.msgbyte.iam/strategies/github.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/plugins/com.msgbyte.iam/strategies/github.ts b/server/plugins/com.msgbyte.iam/strategies/github.ts index 96cf3a30..839db04d 100644 --- a/server/plugins/com.msgbyte.iam/strategies/github.ts +++ b/server/plugins/com.msgbyte.iam/strategies/github.ts @@ -58,7 +58,7 @@ export const GithubStrategy: StrategyType = { return { id: String(result.id), - nickname: result.name, + nickname: result.name ?? result.login, username: result.login, email: result.email, avatar: result.avatar_url,