From 2bc85dd10922267a12c63f287d5ccfcc0e4e602e Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Tue, 26 Jan 2016 23:12:41 +0100 Subject: [PATCH] Acc/Passwords * do not enforce minimum password length for imported accounts --- includes/user.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/user.class.php b/includes/user.class.php index 418e5dbf..dbbed9a0 100644 --- a/includes/user.class.php +++ b/includes/user.class.php @@ -382,7 +382,8 @@ class User { $errCode = 0; - if (mb_strlen($pass) < 6) + // only enforce for own passwords + if (mb_strlen($pass) < 6 && CFG_ACC_AUTH_MODE == AUTH_MODE_SELF) $errCode = 1; // else if (preg_match('/[^\w\d!"#\$%]/', $pass)) // such things exist..? :o // $errCode = 2;