Switch from gitlab to gitea format
This commit is contained in:
parent
4c0faeee3e
commit
94a7b85017
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue