mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 17:48:25 +08:00
patch: fix azure-ad,github callback
This commit is contained in:
parent
e7eb40ab1f
commit
d70d33f1c3
2 changed files with 2 additions and 2 deletions
|
@ -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