Try to get more information about the user when authenticating with openid

This commit is contained in:
kolaente 2021-05-19 14:45:24 +02:00
parent 2351194547
commit 3973ce985d
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
2 changed files with 36 additions and 4 deletions

View file

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