Fix userId is null on history validation by ModuleRegistration (#13)
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user