Add hook 'pre_displayLoginPage'
This commit is contained in:
parent
3645308d0b
commit
3a0d42ecf3
1 changed files with 1 additions and 8 deletions
|
@ -901,14 +901,7 @@ class OC_Util {
|
|||
|
||||
$parameters['alt_login'] = OC_App::getAlternativeLogIns();
|
||||
$parameters['rememberLoginAllowed'] = self::rememberLoginAllowed();
|
||||
foreach($parameters['alt_login'] as $params)
|
||||
{
|
||||
if(isset($params['forceredirect']) && ($params['forceredirect'] === true))
|
||||
{
|
||||
\OCP\Response::redirect($params['href']);
|
||||
exit();
|
||||
}
|
||||
}
|
||||
\OC_Hook::emit('OC_Util', 'pre_displayLoginPage', array('parameters' => $parameters));
|
||||
OC_Template::printGuestPage("", "login", $parameters);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue