patch: fix azure-ad,github callback
@@ -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)
@@ -66,7 +66,7 @@ func handleGithubCallback(w http.ResponseWriter, r *http.Request) {
+ user, err := logic.GetUser(content.Login)