aboutsummaryrefslogtreecommitdiffstats
path: root/include/zid.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/zid.php')
-rw-r--r--include/zid.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/zid.php b/include/zid.php
index d5d863be6..ce9f70385 100644
--- a/include/zid.php
+++ b/include/zid.php
@@ -296,6 +296,14 @@ function owt_init($token) {
$_SESSION['DNT'] = 1;
}
- logger('owa success!');
+ $arr = array('xchan' => $hubloc, 'url' => \App::$query_string, 'session' => $_SESSION);
+ call_hooks('magic_auth_success',$arr);
+ \App::set_observer($hubloc);
+ require_once('include/security.php');
+ \App::set_groups(init_groups_visitor($_SESSION['visitor_id']));
+ if(! get_config('system','hide_owa_greeting'))
+ info(sprintf( t('OpenWebAuth: %1$s welcomes %2$s'),\App::get_hostname(), $hubloc['xchan_name']));
+ logger('OpenWebAuth: auth success from ' . $hubloc['xchan_addr']);
+
} \ No newline at end of file