Fix userId is null on history validation by ModuleRegistration (#13)

This commit is contained in:
AlexT authored and GitHub committed 2022-06-21 08:29:12 +02:00
1 parent d83fbb5451
commit cc650a19b7
1 file changed
+4
@@ -40,6 +40,10 @@ final class PasswordHistory implements PasswordValidatorInterface
return true;
}
if (null === $context->getUserId()) {
return true;
}
$configuration = $this->configuration->getConfiguration($context->getUserEntity());
$historyLength = $configuration['password_history'];
if (!$historyLength) {