mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 15:26:04 +08:00
Merge pull request #2859 from gravitl/release-v0.23.0
patch: fix azure-ad,github callback
This commit is contained in:
commit
194a90041e
|
@ -66,7 +66,7 @@ func handleAzureCallback(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
}
|
||||
user, err := logic.GetUser(content.Email)
|
||||
user, err := logic.GetUser(content.UserPrincipalName)
|
||||
if err != nil {
|
||||
handleOauthUserNotFound(w)
|
||||
return
|
||||
|
|
|
@ -66,7 +66,7 @@ func handleGithubCallback(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
}
|
||||
user, err := logic.GetUser(content.Email)
|
||||
user, err := logic.GetUser(content.Login)
|
||||
if err != nil {
|
||||
handleOauthUserNotFound(w)
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue