diff --git a/application/modules/register/models/Activation_model.php b/application/modules/register/models/Activation_model.php index 40c6e4ae2..f6ed4ff79 100644 --- a/application/modules/register/models/Activation_model.php +++ b/application/modules/register/models/Activation_model.php @@ -9,7 +9,7 @@ public function add($username, $password, $email): string $key = sha1($username . $email . $password . time() . $random_string); $_key = hash('sha256', bin2hex(random_bytes(50))); - $_iv = substr(hash('sha256', bin2hex(random_bytes(50)), 0, 16)); + $_iv = substr(hash('sha256', bin2hex(random_bytes(50))), 0, 16); $data = [ 'username' => $username,