Skip to content

Commit

Permalink
BUGFIX: #1 Remove hardcoded password min length
Browse files Browse the repository at this point in the history
  • Loading branch information
sbruggmann authored Mar 30, 2022
1 parent d93ba11 commit 7127674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Service/UserServiceAspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}

Expand Down

0 comments on commit 7127674

Please sign in to comment.