Make sure the password contains special characters

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/6379/head
Joas Schilling 9 years ago committed by Roeland Jago Douma
parent c58853d223
commit 5a257cec63
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 4
      settings/Controller/UsersController.php

@ -437,7 +437,9 @@ class UsersController extends Controller {
);
}
$password = $this->secureRandom->generate(32);
$password = $this->secureRandom->generate(30);
// Make sure we pass the password_policy
$password .= $this->secureRandom->generate(2, '$!.,;:-~+*[]{}()');
$generatePasswordResetToken = true;
}

Loading…
Cancel
Save