From 6d4435572a933e53ee8ad184f1eb1898d68b3b08 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 17 Sep 2012 23:26:20 +0200 Subject: [PATCH] remove openid thingies we do not need --- www/login.php | 35 ++--------------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) diff --git a/www/login.php b/www/login.php index e4438a4..5d2caa3 100644 --- a/www/login.php +++ b/www/login.php @@ -83,11 +83,6 @@ if (isset($_POST['start'])) { exit; } - // checkid_immediate - if (!empty($_POST['checkid_immediate'])) { - $authRequest->setMode('checkid_immediate'); - } - // SREG $sreg = new \OpenID_Extension_SREG11(\OpenID_Extension::REQUEST); $sreg->set('required', 'email,fullname'); @@ -102,36 +97,10 @@ if (isset($_POST['start'])) { $ax->set('required', 'email,firstname,lastname'); $authRequest->addExtension($ax); - // UI - if (!empty($_POST['ui'])) { - $ui = new \OpenID_Extension_UI(\OpenID_Extension::REQUEST); - $ui->set('mode', 'popup'); - $ui->set('language', 'en-US'); - $authRequest->addExtension($ui); - } - - // OAuth - if (!empty($_POST['oauth'])) { - $oauth = new \OpenID_Extension_OAuth(\OpenID_Extension::REQUEST); - $oauth->set('consumer', $_POST['oauth_consumer_key']); - $_SESSION['OAuth_consumer_key'] = $_POST['oauth_consumer_key']; - $_SESSION['OAuth_consumer_secret'] = $_POST['oauth_consumer_secret']; - - $oauth->set('scope', $_POST['oauth_scope']); - $_SESSION['OAuth_scope'] = $_POST['oauth_scope']; - - $_SESSION['OAuth_access_token_url'] = $_POST['oauth_access_token_url']; - $_SESSION['OAuth_access_token_method'] = $_POST['oauth_access_token_method']; - - $authRequest->addExtension($oauth); - } - $url = $authRequest->getAuthorizeURL(); - if (empty($_POST['debug'])) { - header("Location: $url"); - exit; - } + header("Location: $url"); + exit; } else { if (isset($_SESSION['openid_url'])) { -- 2.30.2