set shadowLastChange for self service password changes
This commit is contained in:
parent
71c0c23418
commit
0a77a98c79
|
@ -1644,6 +1644,9 @@ class posixAccount extends baseModule {
|
|||
}
|
||||
else {
|
||||
$return['mod']['userPassword'][0] = pwd_hash($_POST['posixAccount_password'], true, $this->selfServiceSettings['posixAccount_pwdHash'][0]);
|
||||
if (isset($attributes['shadowLastChange'])) {
|
||||
$return['mod']['shadowLastChange'][0] = intval(time()/3600/24);
|
||||
}
|
||||
$_SESSION['selfService_clientPasswordNew'] = $_POST['posixAccount_password'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue