From 5b4e3f46bca2def72fd2df2651eacdd853892a23 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 22 Feb 2014 14:58:12 -0800 Subject: minor stuff, some doco, auth cleanup, and make "unknown" more translateable by context. --- mod/openid.php | 1 + 1 file changed, 1 insertion(+) (limited to 'mod/openid.php') diff --git a/mod/openid.php b/mod/openid.php index 1ab8749ee..b0d4008d4 100644 --- a/mod/openid.php +++ b/mod/openid.php @@ -42,6 +42,7 @@ function openid_content(&$a) { if(($record['account_flags'] == ACCOUNT_OK) || ($record['account_flags'] == ACCOUNT_UNVERIFIED)) { logger('mod_openid: openid success for ' . $x[0]['channel_name']); $_SESSION['uid'] = $r[0]['channel_id']; + $_SESSION['account_id'] = $r[0]['channel_account_id']; $_SESSION['authenticated'] = true; authenticate_success($record,true,true,true,true); goaway(z_root()); -- cgit v1.2.3 From 39f18d0f1618ce27804d6fcf2eee15e813b17140 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 4 Mar 2014 15:25:04 -0800 Subject: fix third-party zid's --- mod/openid.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mod/openid.php') diff --git a/mod/openid.php b/mod/openid.php index b0d4008d4..2112e0af4 100644 --- a/mod/openid.php +++ b/mod/openid.php @@ -62,6 +62,7 @@ function openid_content(&$a) { if($r) { $_SESSION['authenticated'] = 1; $_SESSION['visitor_id'] = $r[0]['xchan_hash']; + $_SESSION['my_url'] = $r[0]['xchan_url']; $_SESSION['my_address'] = $r[0]['xchan_addr']; $arr = array('xchan' => $r[0], 'session' => $_SESSION); call_hooks('magic_auth_openid_success',$arr); @@ -169,6 +170,7 @@ function openid_content(&$a) { set_xconfig($url,'system','openid',$authid); $_SESSION['authenticated'] = 1; $_SESSION['visitor_id'] = $r[0]['xchan_hash']; + $_SESSION['my_url'] = $r[0]['xchan_url']; $_SESSION['my_address'] = $r[0]['xchan_addr']; $arr = array('xchan' => $r[0], 'session' => $_SESSION); call_hooks('magic_auth_openid_success',$arr); -- cgit v1.2.3