Fix more stuff

pull/47/merge
Pancakes 5 months ago
parent 2ee09afac2
commit 855760ed01
No known key found for this signature in database
GPG Key ID: 5792877BFA27DC8F

@ -47,7 +47,7 @@ func HandleDiscordCallback(w http.ResponseWriter, r *http.Request) (string, erro
} }
func RetrieveDiscordId(code string) (string, error) { func RetrieveDiscordId(code string) (string, error) {
var v url.Values v := make(url.Values)
v.Set("client_id", DiscordClientID) v.Set("client_id", DiscordClientID)
v.Set("client_secret", DiscordClientSecret) v.Set("client_secret", DiscordClientSecret)
v.Set("grant_type", "authorization_code") v.Set("grant_type", "authorization_code")

@ -51,7 +51,7 @@ func HandleGoogleCallback(w http.ResponseWriter, r *http.Request) (string, error
} }
func RetrieveGoogleId(code string) (string, error) { func RetrieveGoogleId(code string) (string, error) {
var v url.Values v := make(url.Values)
v.Set("client_id", GoogleClientID) v.Set("client_id", GoogleClientID)
v.Set("client_secret", GoogleClientSecret) v.Set("client_secret", GoogleClientSecret)
v.Set("code", code) v.Set("code", code)

Loading…
Cancel
Save