Fix bug with variable named context to securityContext in SimplePreAuthenticationListener->handle function

This commit is contained in:
mieszko4 2013-11-05 22:11:59 +01:00
parent 8890627798
commit 38433d765c

View File

@ -70,7 +70,7 @@ class SimplePreAuthenticationListener implements ListenerInterface
$this->logger->info(sprintf('Attempting simple pre-authorization %s', $this->providerKey));
}
if (null !== $this->context->getToken() && !$this->context->getToken() instanceof AnonymousToken) {
if (null !== $this->securityContext->getToken() && !$this->securityContext->getToken() instanceof AnonymousToken) {
return;
}