Merge pull request #2859 from gravitl/release-v0.23.0

patch: fix azure-ad,github callback
This commit is contained in:
Abhishek K 2024-03-15 11:15:12 +07:00 committed by GitHub
commit 194a90041e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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