From 427b9787d07c729c11d61eb17221cbf7671fcbde Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 15 May 2013 02:20:46 -0700 Subject: add magic_auth_complete hook --- mod/post.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mod') diff --git a/mod/post.php b/mod/post.php index 5ec7eabca..f48262343 100644 --- a/mod/post.php +++ b/mod/post.php @@ -118,6 +118,9 @@ function post_init(&$a) { // log them in $_SESSION['authenticated'] = 1; $_SESSION['visitor_id'] = $x[0]['xchan_hash']; + $_SESSION['my_address'] = $address; + $arr = array('xchan' => $x[0], 'url' => $desturl); + call_hooks('magic_auth_success',$arr); $a->set_observer($x[0]); require_once('include/security.php'); $a->set_groups(init_groups_visitor($_SESSION['visitor_id'])); -- cgit v1.2.3