From fb6d4181e429833f083ddd7e1770ed99a70949db Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 25 Apr 2015 10:37:40 -0700 Subject: fix for https redirect uri --- controllers/auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/auth.php b/controllers/auth.php index 13081c4..a2fa08f 100644 --- a/controllers/auth.php +++ b/controllers/auth.php @@ -1,7 +1,7 @@ get('/auth/callback', function() use($app) { $tokenEndpoint = IndieAuth\Client::discoverTokenEndpoint($me); if($tokenEndpoint) { - $token = IndieAuth\Client::getAccessToken($tokenEndpoint, $params['code'], $params['me'], buildRedirectURI(), clientID(), $params['state'], true); + $token = IndieAuth\Client::getAccessToken($tokenEndpoint, $params['code'], $params['me'], buildRedirectURI(), clientID(), k($params,'state'), true); } else { $token = array('auth'=>false, 'response'=>false); -- cgit v1.2.3