add magic_auth_complete hook

This commit is contained in:
friendica
2013-05-15 02:20:46 -07:00
parent 462f91c2ca
commit 427b9787d0
3 changed files with 9 additions and 6 deletions

View File

@@ -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']));