diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-08-04 11:16:43 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-08-04 13:01:23 -0400 |
commit | 628a9371082531908a023618ad4216a2f254f481 (patch) | |
tree | f774cee0b667a65f442078b391b8c6dbeefad56f | |
parent | 4586e15f457706f1f33bda271583b3401803e50e (diff) |
say that it's OK to do OpenID login in private mode
-rw-r--r-- | index.php | 3 | ||||
-rw-r--r-- | plugins/OpenID/OpenIDPlugin.php | 13 |
2 files changed, 14 insertions, 2 deletions
@@ -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 199b1b351..fb6bc5cf8 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; + } + } } |