From 4745a8ce71148ca1608e67ce5e385dad984d578a Mon Sep 17 00:00:00 2001 From: TrystanLea Date: Thu, 22 Jul 2021 14:22:07 +0100 Subject: [PATCH] increase random password length to 16 bytes (32 char hex) --- Modules/user/user_model.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Modules/user/user_model.php b/Modules/user/user_model.php index ea685ff16..fd99cff7d 100644 --- a/Modules/user/user_model.php +++ b/Modules/user/user_model.php @@ -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);