Make sure the password contains special characters
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
c58853d223
commit
5a257cec63
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue