Add possibility for alternative logins to force redirection of login page

This commit is contained in:
Andreas Böhler 2015-07-28 10:31:49 +02:00
parent 4076f84f88
commit 3645308d0b
1 changed files with 8 additions and 0 deletions

View File

@ -901,6 +901,14 @@ class OC_Util {
$parameters['alt_login'] = OC_App::getAlternativeLogIns(); $parameters['alt_login'] = OC_App::getAlternativeLogIns();
$parameters['rememberLoginAllowed'] = self::rememberLoginAllowed(); $parameters['rememberLoginAllowed'] = self::rememberLoginAllowed();
foreach($parameters['alt_login'] as $params)
{
if(isset($params['forceredirect']) && ($params['forceredirect'] === true))
{
\OCP\Response::redirect($params['href']);
exit();
}
}
OC_Template::printGuestPage("", "login", $parameters); OC_Template::printGuestPage("", "login", $parameters);
} }