diff --git a/handlers/auth.go b/handlers/auth.go index 6dbc8cc..ff356d3 100644 --- a/handlers/auth.go +++ b/handlers/auth.go @@ -44,7 +44,7 @@ func OAuth2Endpoint(p *services.Provider, config *oauth2.Config) http.HandlerFun } var user struct { - Username string `json:"username"` + Username string `json:"login"` } err = json.NewDecoder(resp.Body).Decode(&user)