fix: discord oauth redirect url

This commit is contained in:
ckt1031 2023-07-28 15:51:30 +08:00
parent d89e13dac3
commit 6a4bfe2ee4

View File

@ -33,7 +33,7 @@ func getDiscordUserInfoByCode(codeFromURLParamaters string, host string) (*Disco
RequestClient := &http.Client{} RequestClient := &http.Client{}
accessTokenBody := bytes.NewBuffer([]byte(fmt.Sprintf( 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, common.DiscordClientId, common.DiscordClientSecret, common.ServerAddress, codeFromURLParamaters,
))) )))