aboutsummaryrefslogtreecommitdiffstats
path: root/include/zid.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-08 16:00:27 -0700
committerzotlabs <mike@macgirvin.com>2017-09-08 16:00:27 -0700
commit84c86f01c853f87be93807b3e190f954aca2e6e6 (patch)
treed66d8c2292cfd51e523465e4fd68491bb04ff6be /include/zid.php
parent1104e2652f15aaa405208b6dec9e439fb8c39537 (diff)
downloadvolse-hubzilla-84c86f01c853f87be93807b3e190f954aca2e6e6.tar.gz
volse-hubzilla-84c86f01c853f87be93807b3e190f954aca2e6e6.tar.bz2
volse-hubzilla-84c86f01c853f87be93807b3e190f954aca2e6e6.zip
owa: missed the set-observer stuff
Diffstat (limited to 'include/zid.php')
-rw-r--r--include/zid.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/zid.php b/include/zid.php
index d5d863be6..08d8f061b 100644
--- a/include/zid.php
+++ b/include/zid.php
@@ -296,6 +296,13 @@ 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']));
+ info(sprintf( t('Welcome %s. Remote authentication successful.'),$hubloc['xchan_name']));
+ logger('OpenWebAuth: auth success from ' . $hubloc['xchan_addr']);
+
} \ No newline at end of file