aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r--engine/lib/users.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index c9add2541..45499b27d 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -953,7 +953,9 @@ function validate_username($username) {
* @throws RegistrationException on invalid
*/
function validate_password($password) {
- if (strlen($password) < 6) {
+ global $CONFIG;
+
+ if (strlen($password) < $CONFIG->min_password_length) {
throw new RegistrationException(elgg_echo('registration:passwordtooshort'));
}