Merge pull request #2539 from RichieB2B/ncsc-nl/certauth

Allow creating users with CertAuth via userDefaults
pull/2547/head
Andras Iklody 2017-10-05 12:06:57 +02:00 committed by GitHub
commit 67758258fa
1 changed files with 2 additions and 1 deletions

View File

@ -132,7 +132,8 @@ class CertificateAuthenticate extends BaseAuthenticate
self::$user = self::$client;
// If $sync is true, allow the creation of the user from the certificate
$sync = Configure::read('CertAuth.syncUser');
if ($sync) {
$url = Configure::read('CertAuth.restApi.url');
if ($sync && $url) {
if (!self::getRestUser()) return false;
}