mirror of https://github.com/MISP/MISP
Merge pull request #2539 from RichieB2B/ncsc-nl/certauth
Allow creating users with CertAuth via userDefaultspull/2547/head
commit
67758258fa
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue