Update api.socialhub.php
This commit is contained in:
parent
21a9d9b126
commit
c05d72c280
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user