owa: missed the set-observer stuff

This commit is contained in:
zotlabs
2017-09-08 16:00:27 -07:00
parent 1104e2652f
commit 84c86f01c8
2 changed files with 17 additions and 10 deletions

View File

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