add magic_auth_complete hook
This commit is contained in:
parent
462f91c2ca
commit
427b9787d0
10
boot.php
10
boot.php
@ -2,11 +2,11 @@
|
|||||||
/** @file */
|
/** @file */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Red.
|
* Red Matrix.
|
||||||
*
|
*
|
||||||
* Red is an open source decentralised communications platform combined with
|
* The Red Matrix (aka "Red") is an open source decentralised communications
|
||||||
* a decentralised identity/authentication framework wrapped in
|
* platform combined with a decentralised identity/authentication framework
|
||||||
* an extensible content management system, providing website designers
|
* wrapped in an extensible content management system, providing website designers
|
||||||
* the ability to embed fully decentralised communications and social tools
|
* the ability to embed fully decentralised communications and social tools
|
||||||
* into many traditional website designs (blogs, forums, small business
|
* into many traditional website designs (blogs, forums, small business
|
||||||
* websites, charitable organisations, etc.). Red also provides DNS mobility
|
* 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/BaseObject.php');
|
||||||
require_once('include/features.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 ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'R');
|
||||||
define ( 'ZOT_REVISION', 1 );
|
define ( 'ZOT_REVISION', 1 );
|
||||||
define ( 'DB_UPDATE_VERSION', 1042 );
|
define ( 'DB_UPDATE_VERSION', 1042 );
|
||||||
|
@ -118,6 +118,9 @@ function post_init(&$a) {
|
|||||||
// log them in
|
// log them in
|
||||||
$_SESSION['authenticated'] = 1;
|
$_SESSION['authenticated'] = 1;
|
||||||
$_SESSION['visitor_id'] = $x[0]['xchan_hash'];
|
$_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]);
|
$a->set_observer($x[0]);
|
||||||
require_once('include/security.php');
|
require_once('include/security.php');
|
||||||
$a->set_groups(init_groups_visitor($_SESSION['visitor_id']));
|
$a->set_groups(init_groups_visitor($_SESSION['visitor_id']));
|
||||||
|
@ -1 +1 @@
|
|||||||
2013-05-14.313
|
2013-05-15.314
|
||||||
|
Reference in New Issue
Block a user