fix third-party zid's
This commit is contained in:
parent
5f585310e7
commit
39f18d0f16
@ -62,6 +62,7 @@ function openid_content(&$a) {
|
|||||||
if($r) {
|
if($r) {
|
||||||
$_SESSION['authenticated'] = 1;
|
$_SESSION['authenticated'] = 1;
|
||||||
$_SESSION['visitor_id'] = $r[0]['xchan_hash'];
|
$_SESSION['visitor_id'] = $r[0]['xchan_hash'];
|
||||||
|
$_SESSION['my_url'] = $r[0]['xchan_url'];
|
||||||
$_SESSION['my_address'] = $r[0]['xchan_addr'];
|
$_SESSION['my_address'] = $r[0]['xchan_addr'];
|
||||||
$arr = array('xchan' => $r[0], 'session' => $_SESSION);
|
$arr = array('xchan' => $r[0], 'session' => $_SESSION);
|
||||||
call_hooks('magic_auth_openid_success',$arr);
|
call_hooks('magic_auth_openid_success',$arr);
|
||||||
@ -169,6 +170,7 @@ function openid_content(&$a) {
|
|||||||
set_xconfig($url,'system','openid',$authid);
|
set_xconfig($url,'system','openid',$authid);
|
||||||
$_SESSION['authenticated'] = 1;
|
$_SESSION['authenticated'] = 1;
|
||||||
$_SESSION['visitor_id'] = $r[0]['xchan_hash'];
|
$_SESSION['visitor_id'] = $r[0]['xchan_hash'];
|
||||||
|
$_SESSION['my_url'] = $r[0]['xchan_url'];
|
||||||
$_SESSION['my_address'] = $r[0]['xchan_addr'];
|
$_SESSION['my_address'] = $r[0]['xchan_addr'];
|
||||||
$arr = array('xchan' => $r[0], 'session' => $_SESSION);
|
$arr = array('xchan' => $r[0], 'session' => $_SESSION);
|
||||||
call_hooks('magic_auth_openid_success',$arr);
|
call_hooks('magic_auth_openid_success',$arr);
|
||||||
|
@ -243,6 +243,7 @@ function post_init(&$a) {
|
|||||||
|
|
||||||
$_SESSION['authenticated'] = 1;
|
$_SESSION['authenticated'] = 1;
|
||||||
$_SESSION['visitor_id'] = $x[0]['xchan_hash'];
|
$_SESSION['visitor_id'] = $x[0]['xchan_hash'];
|
||||||
|
$_SESSION['my_url'] = $x[0]['xchan_url'];
|
||||||
$_SESSION['my_address'] = $address;
|
$_SESSION['my_address'] = $address;
|
||||||
$_SESSION['remote_service_class'] = $remote_service_class;
|
$_SESSION['remote_service_class'] = $remote_service_class;
|
||||||
$_SESSION['remote_level'] = $remote_level;
|
$_SESSION['remote_level'] = $remote_level;
|
||||||
|
Reference in New Issue
Block a user