@@ -50,8 +50,9 @@ |
||
50 | 50 | // tokens to go on |
51 | 51 | $certname = $_SERVER['SSL_CLIENT_SAN_Email'] ?? $_SERVER['SSL_CLIENT_SAN_Email_0']; |
52 | 52 | $certObject = new \core\SilverbulletCertificate($certname); |
53 | - if ($certObject->status == SilverbulletCertificate::CERTSTATUS_INVALID) |
|
54 | - throw new Exception("We got an accepted certificate authentication, but can't find the certificate in the database!"); |
|
53 | + if ($certObject->status == SilverbulletCertificate::CERTSTATUS_INVALID) { |
|
54 | + throw new Exception("We got an accepted certificate authentication, but can't find the certificate in the database!"); |
|
55 | + } |
|
55 | 56 | } |
56 | 57 | $profile = new \core\ProfileSilverbullet($certObject->profileId); |
57 | 58 | $allTokens = $profile->userStatus($certObject->userId); |