Skip to content

Commit

Permalink
Make sure the password contains special characters
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen authored and rullzer committed Sep 7, 2017
1 parent c58853d commit 5a257ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion settings/Controller/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,9 @@ public function create($username, $password, array $groups = [], $email = '') {
);
}

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

Expand Down

0 comments on commit 5a257ce

Please sign in to comment.