summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--settings/Controller/UsersController.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/Controller/UsersController.php b/settings/Controller/UsersController.php
index cb191441c9a..a78c1b9466b 100644
--- a/settings/Controller/UsersController.php
+++ b/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;
}