X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fopenid.php;h=d1404ba804f4afec2f65de81db24d96a7ec9ff4e;hb=26acf3d78e7dc6e12f35e8e5a86f14fd446322a8;hp=3e9486a6d88082bee974be412cf90993d0211701;hpb=2ef81108b37a85642e1f3380044a03cb1cd8719a;p=friendica.git diff --git a/mod/openid.php b/mod/openid.php index 3e9486a6d8..d1404ba804 100644 --- a/mod/openid.php +++ b/mod/openid.php @@ -7,6 +7,7 @@ use Friendica\App; use Friendica\Core\Authentication; use Friendica\Core\Config; use Friendica\Core\L10n; +use Friendica\Core\Logger; use Friendica\Core\System; use Friendica\Database\DBA; @@ -14,9 +15,9 @@ function openid_content(App $a) { $noid = Config::get('system','no_openid'); if($noid) - $a->redirect(); + $a->internalRedirect(); - logger('mod_openid ' . print_r($_REQUEST,true), LOGGER_DATA); + Logger::log('mod_openid ' . print_r($_REQUEST,true), Logger::DATA); if((x($_GET,'openid_mode')) && (x($_SESSION,'openid'))) { @@ -27,8 +28,8 @@ function openid_content(App $a) { $authid = $_REQUEST['openid_identity']; if(! strlen($authid)) { - logger(L10n::t('OpenID protocol error. No ID returned.') . EOL); - $a->redirect(); + Logger::log(L10n::t('OpenID protocol error. No ID returned.') . EOL); + $a->internalRedirect(); } // NOTE: we search both for normalised and non-normalised form of $authid @@ -56,7 +57,7 @@ function openid_content(App $a) { // just in case there was no return url set // and we fell through - $a->redirect(); + $a->internalRedirect(); } // Successful OpenID login - but we can't match it to an existing account. @@ -64,7 +65,7 @@ function openid_content(App $a) { if (intval(Config::get('config', 'register_policy')) === REGISTER_CLOSED) { notice(L10n::t('Account not found and OpenID registration is not permitted on this site.') . EOL); - $a->redirect(); + $a->internalRedirect(); } unset($_SESSION['register']); @@ -108,12 +109,12 @@ function openid_content(App $a) { $args .= '&openid_url=' . urlencode(notags(trim($authid))); - $a->redirect('register?' . $args); + $a->internalRedirect('register?' . $args); // NOTREACHED } } notice(L10n::t('Login failed.') . EOL); - $a->redirect(); + $a->internalRedirect(); // NOTREACHED }