From 628a9371082531908a023618ad4216a2f254f481 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 4 Aug 2009 11:16:43 -0400 Subject: [PATCH] say that it's OK to do OpenID login in private mode --- index.php | 3 +-- plugins/OpenID/OpenIDPlugin.php | 13 +++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) 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; + } + } } -- 2.39.5