say that it's OK to do OpenID login in private mode
This commit is contained in:
parent
4586e15f45
commit
628a937108
@ -107,8 +107,7 @@ function checkMirror($action_obj)
|
|||||||
|
|
||||||
function isLoginAction($action)
|
function isLoginAction($action)
|
||||||
{
|
{
|
||||||
static $loginActions = array('login', 'openidlogin', 'finishopenidlogin',
|
static $loginActions = array('login', 'recoverpassword', 'api', 'doc', 'register');
|
||||||
'recoverpassword', 'api', 'doc', 'register');
|
|
||||||
|
|
||||||
$login = null;
|
$login = null;
|
||||||
|
|
||||||
|
@ -129,4 +129,17 @@ class OpenIDPlugin extends Plugin
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onLoginAction($action, &$login)
|
||||||
|
{
|
||||||
|
switch ($action)
|
||||||
|
{
|
||||||
|
case 'openidlogin':
|
||||||
|
case 'finishopenidlogin':
|
||||||
|
$login = true;
|
||||||
|
return false;
|
||||||
|
default:
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user