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

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

parent 0d73295b
No related branches found
No related tags found
1 merge request!200Stable 3.0.5 Fixes
......@@ -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);
......
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