Fix password hash assignment and update timestamp format in PasswordManager
This commit is contained in:
parent
8046b8a8a2
commit
be25ea49f9
3 changed files with 8 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue