Skip to content

Commit

Permalink
щас должен ноуспам заработать
Browse files Browse the repository at this point in the history
  • Loading branch information
veselcraft authored Oct 30, 2023
1 parent 1a17a24 commit 9a4309a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Web/Models/Entities/PasswordReset.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ function verify(string $token): bool
}
}

function save(): void
function save(?bool $log = false): void
{
$this->stateChanges("key", base64_encode(openssl_random_pseudo_bytes(46)));
$this->stateChanges("timestamp", time());

parent::save();
parent::save($log);
}
}

0 comments on commit 9a4309a

Please sign in to comment.