Commit 4befd876 authored by J. Daniel Schmidt's avatar J. Daniel Schmidt
Browse files

create long passwords during password reset

The password policy is not taken into account here, so
rather create very long passwords to encourage people
to reset them (which would then apply the password policy).
parent 6bdb100a
......@@ -60,7 +60,7 @@ if(isset($_POST['username']) && $_POST['username'] != '' && $_POST['email'] != '
$app->tpl->setVar("error", $wb['lost_password_function_disabled_txt']);
} else {
if($client['client_id'] > 0) {
$new_password = $app->auth->get_random_password();
$new_password = $app->auth->get_random_password().$app->auth->get_random_password().$app->auth->get_random_password();
$new_password_encrypted = $app->auth->crypt_password($new_password);
$new_password_encrypted = $app->db->quote($new_password_encrypted);
......
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