mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +00:00
do not redirect to ForcePassword page if out.Logout.php was opened (Closes #421)
This commit is contained in:
parent
71e59f1a22
commit
2f8fd33f8e
|
@ -130,7 +130,7 @@ if(file_exists($settings->_rootDir . "view/".$theme."/languages/" . $lang . "/la
|
||||||
|
|
||||||
if (!$user->isAdmin()) {
|
if (!$user->isAdmin()) {
|
||||||
if($settings->_passwordExpiration > 0) {
|
if($settings->_passwordExpiration > 0) {
|
||||||
if(basename($_SERVER['SCRIPT_NAME']) != 'out.ForcePasswordChange.php' && basename($_SERVER['SCRIPT_NAME']) != 'op.EditUserData.php') {
|
if(basename($_SERVER['SCRIPT_NAME']) != 'out.ForcePasswordChange.php' && basename($_SERVER['SCRIPT_NAME']) != 'op.EditUserData.php' && basename($_SERVER['SCRIPT_NAME']) != 'op.Logout.php') {
|
||||||
$pwdexp = $user->getPwdExpiration();
|
$pwdexp = $user->getPwdExpiration();
|
||||||
if(substr($pwdexp, 0, 10) != '0000-00-00') {
|
if(substr($pwdexp, 0, 10) != '0000-00-00') {
|
||||||
$pwdexpts = strtotime($pwdexp); // + $pwdexp*86400;
|
$pwdexpts = strtotime($pwdexp); // + $pwdexp*86400;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user