Browse Source

Make sure the password contains special characters

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v13.0.0beta1
Joas Schilling 6 years ago
parent
commit
5a257cec63
No account linked to committer's email address
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      settings/Controller/UsersController.php

+ 3
- 1
settings/Controller/UsersController.php 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;
}


Loading…
Cancel
Save