commit 5c786bec2bb3cffb96cc2ee8c5e4f4f9be2f3b76
parent 3da727be74462066e5bfe168c66a04bfd834699f
Author: MTRNord <mtrnord1@gmail.com>
Date: Thu, 1 Jan 2015 12:16:50 +0100
hmm
Diffstat:
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/core/libs/OAuth2/src/fkooman/OAuth/Client/Callback.php b/core/libs/OAuth2/src/fkooman/OAuth/Client/Callback.php
@@ -96,7 +96,7 @@ class Callback
throw new CallbackException("state parameter missing");
}
$state = $this->tokenStorage->getState($this->clientConfigId, $queryState);
- echo $state;
+
if (false === $state) {
throw new CallbackException("state not found");
}
diff --git a/core/libs/OAuth2/src/fkooman/OAuth/Client/SessionStorage.php b/core/libs/OAuth2/src/fkooman/OAuth/Client/SessionStorage.php
@@ -141,7 +141,6 @@ class SessionStorage implements StorageInterface
if (!isset($_SESSION['php-oauth-client']['state'])) {
return false;
}
- echo $state;
foreach ($_SESSION['php-oauth-client']['state'] as $s) {
$sessionState = unserialize($s);