Add possibility for alternative logins to force redirection of login page
This commit is contained in:
parent
4076f84f88
commit
3645308d0b
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue