add object class check for password changes
This commit is contained in:
parent
def0470d74
commit
a3d444cd08
|
@ -456,7 +456,9 @@ class phpGroupwareUser extends baseModule implements passwordService {
|
||||||
if (!in_array('posixAccount', $modules)) {
|
if (!in_array('posixAccount', $modules)) {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
$this->attributes['phpgwLastPasswordChange'][0] = time();
|
if (in_array_ignore_case('phpgwAccount', $this->attributes['objectClass'])) {
|
||||||
|
$this->attributes['phpgwLastPasswordChange'][0] = time();
|
||||||
|
}
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -519,7 +519,9 @@ class shadowAccount extends baseModule implements passwordService {
|
||||||
if (!in_array('posixAccount', $modules)) {
|
if (!in_array('posixAccount', $modules)) {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
$this->attributes['shadowLastChange'][0] = intval(time()/3600/24);
|
if (in_array_ignore_case('shadowAccount', $this->attributes['objectClass'])) {
|
||||||
|
$this->attributes['shadowLastChange'][0] = intval(time()/3600/24);
|
||||||
|
}
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue