Update api.socialhub.php

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

View File

@ -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);