Allow creating users with CertAuth via userDefaults, fixes #2538

pull/2539/head
Richard van den Berg 2017-10-05 11:41:54 +02:00
parent bdb7afa06f
commit 0e97e67be0
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;
}