Fix User::makeHash on PHP8

This commit is contained in:
celestora 2022-10-11 19:11:22 +03:00
parent e3706234e7
commit 77ed640115
1 changed files with 1 additions and 1 deletions

View File

@ -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(