Try to get more information about the user when authenticating with openid
This commit is contained in:
parent
2351194547
commit
3973ce985d
2 changed files with 36 additions and 4 deletions
|
|
@ -79,7 +79,7 @@ func GetAllProviders() (providers []*Provider, err error) {
|
|||
func GetProvider(key string) (provider *Provider, err error) {
|
||||
var p interface{}
|
||||
p, exists, err := keyvalue.Get("openid_provider_" + key)
|
||||
if exists {
|
||||
if !exists {
|
||||
_, err = GetAllProviders() // This will put all providers in cache
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Reference in a new issue