diff options
author | Arnold Daniels <arnold@jasny.net> | 2015-10-17 17:13:20 -0400 |
---|---|---|
committer | Arnold Daniels <arnold@jasny.net> | 2015-10-17 17:13:20 -0400 |
commit | 7f00e370992a1ad8df2ce4993f3399c6bcdbaa13 (patch) | |
tree | 55468c0d1f864679c6a2f85bba3fba64123857bb /src | |
parent | 8ca4fa91fe86aa2b674e669954b8198754307ec0 (diff) | |
download | sso-7f00e370992a1ad8df2ce4993f3399c6bcdbaa13.zip sso-7f00e370992a1ad8df2ce4993f3399c6bcdbaa13.tar.gz sso-7f00e370992a1ad8df2ce4993f3399c6bcdbaa13.tar.bz2 |
Removed require_once from Server.phpv0.1.3
Diffstat (limited to 'src')
-rw-r--r-- | src/Server.php | 3 |
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']); |