Skip to content
Snippets Groups Projects
Commit 76c0bd31 authored by Marius Cramer's avatar Marius Cramer
Browse files

- fixed FS#3907 - "Reset password" generates too short passwords

parent 1e00f890
No related branches found
No related tags found
No related merge requests found
...@@ -175,7 +175,6 @@ class auth { ...@@ -175,7 +175,6 @@ class auth {
} }
public function get_random_password($minLength = 8, $special = false) { public function get_random_password($minLength = 8, $special = false) {
$minLength = $minLength || 10;
if($minLength < 8) $minLength = 8; if($minLength < 8) $minLength = 8;
$maxLength = $minLength + 5; $maxLength = $minLength + 5;
$length = mt_rand($minLength, $maxLength); $length = mt_rand($minLength, $maxLength);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment