mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
check also for '' in pwdExpiration
This commit is contained in:
parent
83dcd9da7b
commit
dac9c7b37f
|
@ -136,7 +136,7 @@ if (!$user->isAdmin() && $origuser == null) {
|
|||
if($settings->_passwordExpiration > 0) {
|
||||
if(basename($_SERVER['SCRIPT_NAME']) != 'out.ForcePasswordChange.php' && basename($_SERVER['SCRIPT_NAME']) != 'op.EditUserData.php') {
|
||||
$pwdexp = $user->getPwdExpiration();
|
||||
if(substr($pwdexp, 0, 10) != '0000-00-00') {
|
||||
if($pwdexp && substr($pwdexp, 0, 10) != '0000-00-00') {
|
||||
$pwdexpts = strtotime($pwdexp); // + $pwdexp*86400;
|
||||
if($pwdexpts > 0 && $pwdexpts < time()) {
|
||||
header("Location: ../out/out.ForcePasswordChange.php");
|
||||
|
|
Loading…
Reference in New Issue
Block a user