Make sure the password contains special characters

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-09-06 15:48:45 +02:00 committed by Roeland Jago Douma
parent c58853d223
commit 5a257cec63
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 3 additions and 1 deletions

View File

@ -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; $generatePasswordResetToken = true;
} }