1
0
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:
Jehiah Czebotar
2015-07-24 16:23:19 -04:00
parent c1bf1ad167
commit 0692c3763f
4 changed files with 7 additions and 7 deletions

View File

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