From c05d72c280cfbef7af07eaa0e0ecab8e0e4da5c1 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 27 Sep 2018 04:59:28 +0900 Subject: [PATCH] Update api.socialhub.php --- route/api.socialhub.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/route/api.socialhub.php b/route/api.socialhub.php index a425504..ac0f0c1 100644 --- a/route/api.socialhub.php +++ b/route/api.socialhub.php @@ -111,8 +111,9 @@ try { } else { $hauth_adapter = $hauth->getAdapter($provider); } + $session_flag = true; } catch(Exception $e) { - // nothing + $hauth_adapter = $hauth->authenticate($provider); } if(!$session_flag) { @@ -157,3 +158,5 @@ switch($action) { show_errors(); } +echo json_encode($context); +