mirror of
https://github.com/OliveTin/OliveTin
synced 2026-09-27 12:15:38 +00:00
Update restapi_auth_oauth2.go
This commit is contained in:
@@ -260,7 +260,7 @@ func (h *OAuth2Handler) handleOAuthCallback(w http.ResponseWriter, r *http.Reque
|
||||
Timeout: clientSettings.Timeout,
|
||||
}
|
||||
|
||||
userinfo := getUserInfo(cfg, userInfoClient, cfg.AuthOAuth2Providers[registeredState.providerName])
|
||||
userinfo := getUserInfo(h.cfg, userInfoClient, h.cfg.AuthOAuth2Providers[registeredState.providerName])
|
||||
|
||||
h.registeredStates[state].Username = userinfo.Username
|
||||
h.registeredStates[state].Usergroup = userinfo.Usergroup
|
||||
|
||||
Reference in New Issue
Block a user