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

@ -2,11 +2,11 @@
/** @file */
/**
* Red.
* Red Matrix.
*
* Red is an open source decentralised communications platform combined with
* a decentralised identity/authentication framework wrapped in
* an extensible content management system, providing website designers
* The Red Matrix (aka "Red") is an open source decentralised communications
* platform combined with a decentralised identity/authentication framework
* wrapped in an extensible content management system, providing website designers
* the ability to embed fully decentralised communications and social tools
* into many traditional website designs (blogs, forums, small business
* websites, charitable organisations, etc.). Red also provides DNS mobility
@ -38,7 +38,7 @@ require_once('library/Mobile_Detect/Mobile_Detect.php');
require_once('include/BaseObject.php');
require_once('include/features.php');
define ( 'RED_PLATFORM', 'Red' );
define ( 'RED_PLATFORM', 'Red Matrix' );
define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'R');
define ( 'ZOT_REVISION', 1 );
define ( 'DB_UPDATE_VERSION', 1042 );

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

View File

@ -1 +1 @@
2013-05-14.313
2013-05-15.314