forked from GNUsocial/gnu-social
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)
|
||||
{
|
||||
static $loginActions = array('login', 'openidlogin', 'finishopenidlogin',
|
||||
'recoverpassword', 'api', 'doc', 'register');
|
||||
static $loginActions = array('login', 'recoverpassword', 'api', 'doc', 'register');
|
||||
|
||||
$login = null;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user