namespace issue with openid reverse auth
This commit is contained in:
parent
a10f5e9e06
commit
0dcea87b99
@ -24,7 +24,7 @@ class Rmagic extends \Zotlabs\Web\Controller {
|
||||
}
|
||||
}
|
||||
|
||||
function post() {
|
||||
function post() {
|
||||
|
||||
$address = trim($_REQUEST['address']);
|
||||
|
||||
@ -34,13 +34,13 @@ class Rmagic extends \Zotlabs\Web\Controller {
|
||||
|
||||
try {
|
||||
require_once('library/openid/openid.php');
|
||||
$openid = new LightOpenID(z_root());
|
||||
$openid = new \LightOpenID(z_root());
|
||||
$openid->identity = $address;
|
||||
$openid->returnUrl = z_root() . '/openid';
|
||||
$openid->required = array('namePerson/friendly', 'namePerson');
|
||||
$openid->optional = array('namePerson/first','media/image/aspect11','media/image/default');
|
||||
goaway($openid->authUrl());
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
notice( t('We encountered a problem while logging in with the OpenID you provided. Please check the correct spelling of the ID.').'<br /><br >'. t('The error message was:').' '.$e->getMessage());
|
||||
}
|
||||
|
||||
@ -82,7 +82,7 @@ class Rmagic extends \Zotlabs\Web\Controller {
|
||||
}
|
||||
|
||||
|
||||
function get() {
|
||||
function get() {
|
||||
|
||||
$o = replace_macros(get_markup_template('rmagic.tpl'),array(
|
||||
'$title' => t('Remote Authentication'),
|
||||
|
Reference in New Issue
Block a user