mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 08:09:02 +01:00
* Login: fix not working forced password reset
This commit is contained in:
parent
1624ceae07
commit
8a14301710
@ -51,6 +51,8 @@ if(isset($GLOBALS['sitemgr_info']) && $GLOBALS['egw_info']['user']['userid'] ==
|
||||
}
|
||||
}
|
||||
|
||||
function parseForward(&$extra_vars)
|
||||
{
|
||||
$forward = isset($_GET['phpgw_forward']) ? urldecode($_GET['phpgw_forward']) : @$_POST['phpgw_forward'];
|
||||
if (!$forward)
|
||||
{
|
||||
@ -66,10 +68,13 @@ else
|
||||
$extra_vars .= ($extra_vars ? '&' : '') . 'cd=yes';
|
||||
}
|
||||
}
|
||||
return $forward;
|
||||
}
|
||||
|
||||
// SSO login: CAS, SAML, ...
|
||||
if (($GLOBALS['sessionid'] = Api\Auth::login()))
|
||||
{
|
||||
$forward = parseForward($extra_vars);
|
||||
$GLOBALS['egw']->redirect_link($forward, $extra_vars);
|
||||
}
|
||||
else
|
||||
@ -262,6 +267,8 @@ else
|
||||
// check if new translations are available
|
||||
Api\Translation::check_invalidate_cache();
|
||||
|
||||
$forward = parseForward($extra_vars);
|
||||
|
||||
if(strpos($_SERVER['HTTP_REFERER'], $_SERVER['REQUEST_URI']) === false) {
|
||||
// login requuest does not come from login.php
|
||||
// redirect to referer on logout
|
||||
|
Loading…
Reference in New Issue
Block a user