You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-06-15 00:15:00 +02:00
More robust handling for missing email
This commit is contained in:
@ -2,7 +2,6 @@ package providers
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
@ -211,5 +210,5 @@ func (p *GitHubProvider) GetEmailAddress(s *SessionState) (string, error) {
|
||||
}
|
||||
}
|
||||
|
||||
return "", errors.New("no email address found")
|
||||
return "", nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user