mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Fix token creation in php 8.1
This commit is contained in:
parent
f57a470c5d
commit
3f1c9cd5ff
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class APIToken extends RowModel
|
||||||
$this->delete();
|
$this->delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
function save(): void
|
function save(?bool $log = false): void
|
||||||
{
|
{
|
||||||
if(is_null($this->getRecord()))
|
if(is_null($this->getRecord()))
|
||||||
$this->stateChanges("secret", bin2hex(openssl_random_pseudo_bytes(36)));
|
$this->stateChanges("secret", bin2hex(openssl_random_pseudo_bytes(36)));
|
||||||
|
|
Loading…
Reference in a new issue