From 712767427066bd0bc8fce93941a1e7d77c3b3e10 Mon Sep 17 00:00:00 2001 From: Stefan Bruggmann Date: Wed, 30 Mar 2022 10:55:03 +0200 Subject: [PATCH] BUGFIX: #1 Remove hardcoded password min length --- Classes/Service/UserServiceAspect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Service/UserServiceAspect.php b/Classes/Service/UserServiceAspect.php index 189f417..c3aca5a 100644 --- a/Classes/Service/UserServiceAspect.php +++ b/Classes/Service/UserServiceAspect.php @@ -54,7 +54,7 @@ protected function checkPasswordStrength($password) $number = !$this->settings['passwordRequirements']['numbers'] ?: preg_match('@[0-9]@', $password); $specialChars = !$this->settings['passwordRequirements']['specialChars'] ?: preg_match('@[^\w]@', $password); - if(!$uppercase || !$lowercase || !$number || !$specialChars || strlen($password) < 8) { + if(!$uppercase || !$lowercase || !$number || !$specialChars) { $this->throwPasswordRequirementsException('The password is too easy.'); }