patch: fix azure-ad,github callback

This commit is contained in:
abhishek9686 2024-03-14 09:12:13 +07:00
parent e7eb40ab1f
commit d70d33f1c3
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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