Skip to content

Commit

Permalink
Merge branch '4.1'
Browse files Browse the repository at this point in the history
* 4.1:
  fix merge
  • Loading branch information
xabbuh committed Oct 10, 2018
2 parents 8848a1a + 61cf143 commit 493c13a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/Symfony/Component/Security/Http/Firewall/ContextListener.php
Expand Up @@ -175,17 +175,13 @@ protected function refreshUser(TokenInterface $token)

// tokens can be deauthenticated if the user has been changed.
if (!$newToken->isAuthenticated()) {
if ($this->logoutOnUserChange) {
$userDeauthenticated = true;
$userDeauthenticated = true;

if (null !== $this->logger) {
$this->logger->debug('Cannot refresh token because user has changed.', array('username' => $refreshedUser->getUsername(), 'provider' => \get_class($provider)));
}

continue;
if (null !== $this->logger) {
$this->logger->debug('Cannot refresh token because user has changed.', array('username' => $refreshedUser->getUsername(), 'provider' => \get_class($provider)));
}

return null;
continue;
}

$token->setUser($refreshedUser);
Expand Down

0 comments on commit 493c13a

Please sign in to comment.