summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Server.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Server.php b/src/Server.php
index 7855ec7..9716c25 100644
--- a/src/Server.php
+++ b/src/Server.php
@@ -1,8 +1,6 @@
<?php
namespace Jasny\SSO;
-require_once __DIR__ . '/../vendor/autoload.php';
-
use Desarrolla2\Cache\Cache;
use Desarrolla2\Cache\Adapter;
@@ -145,6 +143,7 @@ abstract class Server
protected function generateAttachChecksum($brokerId, $token)
{
$broker = $this->getBrokerInfo($brokerId);
+
if (!isset($broker)) return null;
return hash('sha256', 'attach' . $token . $_SERVER['REMOTE_ADDR'] . $broker['secret']);