From 6a4bfe2ee48a1c99e5e610ecb45ddf079fe8f66f Mon Sep 17 00:00:00 2001 From: ckt1031 <65409152+ckt1031@users.noreply.github.com> Date: Fri, 28 Jul 2023 15:51:30 +0800 Subject: [PATCH] fix: discord oauth redirect url --- controller/discord.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/discord.go b/controller/discord.go index d7853a2b..4daf87b8 100644 --- a/controller/discord.go +++ b/controller/discord.go @@ -33,7 +33,7 @@ func getDiscordUserInfoByCode(codeFromURLParamaters string, host string) (*Disco RequestClient := &http.Client{} accessTokenBody := bytes.NewBuffer([]byte(fmt.Sprintf( - "client_id=%s&client_secret=%s&grant_type=authorization_code&redirect_uri=https://%s/oauth/discord&code=%s&scope=identify", + "client_id=%s&client_secret=%s&grant_type=authorization_code&redirect_uri=%s/oauth/discord&code=%s&scope=identify", common.DiscordClientId, common.DiscordClientSecret, common.ServerAddress, codeFromURLParamaters, )))