Skip to content

Commit

Permalink
Module/Register: Fix generate iv email activation
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightprince committed May 8, 2024
1 parent be99eab commit e588fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/modules/register/models/Activation_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e588fbb

Please sign in to comment.