Commit d7ababc9 authored by Marius Cramer's avatar Marius Cramer

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

parent 0d73295b
......@@ -154,7 +154,6 @@ class auth {
}
public function get_random_password($minLength = 8, $special = false) {
$minLength = $minLength || 10;
if($minLength < 8) $minLength = 8;
$maxLength = $minLength + 5;
$length = mt_rand($minLength, $maxLength);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment