Skip to content

Commit

Permalink
increase random password length to 16 bytes (32 char hex)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrystanLea committed Jul 22, 2021
1 parent f95a433 commit 4745a8c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Modules/user/user_model.php
Expand Up @@ -530,7 +530,6 @@ public function passwordreset($username,$emailto)
{
// Generate new random password
$newpass = hash('sha256',generate_secure_key(16));
$newpass = substr($newpass, 0, 10);

// Hash and salt
$hash = hash('sha256', $newpass);
Expand Down

0 comments on commit 4745a8c

Please sign in to comment.