set shadowLastChange for self service password changes

This commit is contained in:
Roland Gruber 2007-07-08 10:21:34 +00:00
parent 71c0c23418
commit 0a77a98c79
1 changed files with 3 additions and 0 deletions

View File

@ -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'];
}
}