Fix password hash assignment and update timestamp format in PasswordManager

This commit is contained in:
netkas 2025-03-28 15:01:13 -04:00
parent 8046b8a8a2
commit be25ea49f9
Signed by: netkas
GPG key ID: 4D8629441B76E4CC
3 changed files with 8 additions and 4 deletions

View file

@ -122,7 +122,7 @@
try
{
$stmt = Database::getConnection()->prepare("UPDATE authentication_passwords SET hash=:hash, updated=:updated WHERE peer_uuid=:peer_uuid");
$updated = (new DateTime())->setTimestamp(time());
$updated = (new DateTime())->setTimestamp(time())->format('Y-m-d H:i:s');
$stmt->bindParam(':hash', $securedPassword);
$stmt->bindParam(':updated', $updated);
$stmt->bindParam(':peer_uuid', $peerUuid);