Merge branch 'support-discord-oauth' into refactor-main
Some checks failed
Publish Docker image (amd64, English) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release (English) / release (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
Some checks failed
Publish Docker image (amd64, English) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release (English) / release (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
This commit is contained in:
commit
101c3d83cd
@ -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,
|
||||||
)))
|
)))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user