mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 04:31:32 +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($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') {
|
||||||
$pwdexp = $user->getPwdExpiration();
|
$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;
|
$pwdexpts = strtotime($pwdexp); // + $pwdexp*86400;
|
||||||
if($pwdexpts > 0 && $pwdexpts < time()) {
|
if($pwdexpts > 0 && $pwdexpts < time()) {
|
||||||
header("Location: ../out/out.ForcePasswordChange.php");
|
header("Location: ../out/out.ForcePasswordChange.php");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user