say that it's OK to do OpenID login in private mode

This commit is contained in:
Evan Prodromou 2009-08-04 11:16:43 -04:00
parent 4586e15f45
commit 628a937108
2 changed files with 14 additions and 2 deletions

View File

@ -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;

View File

@ -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;
}
}
}