Update api.socialhub.php

This commit is contained in:
Namhyeon Go 2018-09-27 02:28:59 +09:00 committed by GitHub
parent 439e3c2104
commit 4f0e96f456
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,8 +73,8 @@ if(check_hybridauth()) {
$hauth_session = $hauth->getSessionData(); $hauth_session = $hauth->getSessionData();
$connection_id = store_hybridauth_session($hauth_session, $user_id); $connection_id = store_hybridauth_session($hauth_session, $user_id);
if($connection_id) { if($connection_id) {
$session_flag = true;
$hauth_profile = $hauth_adapter->getUserProfile(); $hauth_profile = $hauth_adapter->getUserProfile();
$session_flag = true;
} }
} }
@ -120,17 +120,6 @@ if(!$session_flag) {
"user_id" => $user_id, "user_id" => $user_id,
"connection_id" => $connection_id "connection_id" => $connection_id
), false)); ), 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 // do action