namespace issue with openid reverse auth
This commit is contained in:
parent
a10f5e9e06
commit
0dcea87b99
@ -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());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user