diff options
author | friendica <info@friendica.com> | 2013-05-15 02:20:46 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-05-15 02:20:46 -0700 |
commit | 427b9787d07c729c11d61eb17221cbf7671fcbde (patch) | |
tree | bfec09d7060e08ace6d2316a763a84d64e2dea70 /mod/post.php | |
parent | 462f91c2cae070ea4912508ad80f04cb4cd93355 (diff) | |
download | volse-hubzilla-427b9787d07c729c11d61eb17221cbf7671fcbde.tar.gz volse-hubzilla-427b9787d07c729c11d61eb17221cbf7671fcbde.tar.bz2 volse-hubzilla-427b9787d07c729c11d61eb17221cbf7671fcbde.zip |
add magic_auth_complete hook
Diffstat (limited to 'mod/post.php')
-rw-r--r-- | mod/post.php | 3 |
1 files changed, 3 insertions, 0 deletions
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'])); |