From 94a7b85017ec8a6d8dff65f5de39c1f3e7d10360 Mon Sep 17 00:00:00 2001 From: paul Date: Sat, 6 Feb 2021 23:44:14 +0100 Subject: [PATCH] Switch from gitlab to gitea format --- handlers/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)