Bug fix - clear text passwords were not updated to the encrypted version upon password retrieval

This commit is contained in:
Gergely Polonkai (W00d5t0ck) 2011-02-14 16:53:11 +01:00
parent aca3feb94b
commit 0e54b23763
1 changed files with 1 additions and 0 deletions

View File

@ -300,6 +300,7 @@ if (!class_exists('PWSdb'))
$sth = $this->prepare('UPDATE passwords SET password = ?, modifiedby = ?, modifiedat = datetime(\'now\') WHERE id = ?');
$params = array($this->encryptPassword($newPassword), $username, $passwordId);
}
$sth->execute();
}
function updatePasswordAccess($passwordId)