mirror of
https://github.com/openvk/chandler.git
synced 2025-01-22 15:24:15 +03:00
Fix User::makeHash on PHP8
This commit is contained in:
parent
e3706234e7
commit
77ed640115
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class User
|
|||
* @param string $password password
|
||||
* @return string hash
|
||||
*/
|
||||
private function makeHash(string $password): string
|
||||
private static function makeHash(string $password): string
|
||||
{
|
||||
$salt = openssl_random_pseudo_bytes(SODIUM_CRYPTO_PWHASH_SALTBYTES);
|
||||
$hash = sodium_crypto_pwhash(
|
||||
|
|
Loading…
Reference in a new issue