From: Evan Prodromou Date: Tue, 4 Aug 2009 15:16:43 +0000 (-0400) Subject: say that it's OK to do OpenID login in private mode X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=628a9371082531908a023618ad4216a2f254f481;p=quix0rs-gnu-social.git say that it's OK to do OpenID login in private mode --- diff --git a/index.php b/index.php index 372a8536ec..c1245136e9 100644 --- a/index.php +++ b/index.php @@ -107,8 +107,7 @@ function checkMirror($action_obj) function isLoginAction($action) { - static $loginActions = array('login', 'openidlogin', 'finishopenidlogin', - 'recoverpassword', 'api', 'doc', 'register'); + static $loginActions = array('login', 'recoverpassword', 'api', 'doc', 'register'); $login = null; diff --git a/plugins/OpenID/OpenIDPlugin.php b/plugins/OpenID/OpenIDPlugin.php index 199b1b3514..fb6bc5cf8e 100644 --- a/plugins/OpenID/OpenIDPlugin.php +++ b/plugins/OpenID/OpenIDPlugin.php @@ -129,4 +129,17 @@ class OpenIDPlugin extends Plugin return true; } } + + function onLoginAction($action, &$login) + { + switch ($action) + { + case 'openidlogin': + case 'finishopenidlogin': + $login = true; + return false; + default: + return true; + } + } }