mirror of https://github.com/MISP/MISP
Allow creating users with CertAuth via userDefaults, fixes #2538
parent
bdb7afa06f
commit
0e97e67be0
|
@ -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