From 4f0e96f4564012170f853b8f3e7366ae9a0b5b85 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 27 Sep 2018 02:28:59 +0900 Subject: [PATCH] Update api.socialhub.php --- route/api.socialhub.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/route/api.socialhub.php b/route/api.socialhub.php index 9564a4a..42c119c 100644 --- a/route/api.socialhub.php +++ b/route/api.socialhub.php @@ -73,8 +73,8 @@ if(check_hybridauth()) { $hauth_session = $hauth->getSessionData(); $connection_id = store_hybridauth_session($hauth_session, $user_id); if($connection_id) { - $session_flag = true; $hauth_profile = $hauth_adapter->getUserProfile(); + $session_flag = true; } } @@ -120,17 +120,6 @@ if(!$session_flag) { "user_id" => $user_id, "connection_id" => $connection_id ), false)); -} else { - - - if(!is_null($hauth_adapter)) { - $hauth_session = $hauth->getSessionData(); - $connection_id = store_hybridauth_session($hauth_session, $user_id); - if($connection_id) { - $session_flag = true; - $hauth_profile = $hauth_adapter->getUserProfile(); - } - } } // do action