mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-03 03:27:13 +08:00
Fix more stuff
This commit is contained in:
parent
2ee09afac2
commit
855760ed01
@ -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…
x
Reference in New Issue
Block a user