щас должен ноуспам заработать

This commit is contained in:
Vladimir Barinov 2023-10-31 00:13:36 +03:00 committed by GitHub
parent 1a17a245c5
commit 9a4309ae01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,11 +54,11 @@ class PasswordReset extends RowModel
}
}
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);
}
}