Switch from gitlab to gitea format

This commit is contained in:
paul 2021-02-06 23:44:14 +01:00
parent 4c0faeee3e
commit 94a7b85017

View file

@ -44,7 +44,7 @@ func OAuth2Endpoint(p *services.Provider, config *oauth2.Config) http.HandlerFun
} }
var user struct { var user struct {
Username string `json:"username"` Username string `json:"login"`
} }
err = json.NewDecoder(resp.Body).Decode(&user) err = json.NewDecoder(resp.Body).Decode(&user)