Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/1.x' into 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
a-menshchikov committed Jun 8, 2021
2 parents 7038f6e + beabed1 commit e8b4930
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Security/Authentication/Provider/SamlProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ public function authenticate(TokenInterface $token)
if ($user) {
if ($user instanceof SamlUserInterface) {
$user->setSamlAttributes($token->getAttributes());
if ($this->entityManager) {
$this->entityManager->persist($user);
$this->entityManager->flush();
}
}

$authenticatedToken = $this->tokenFactory->createToken($user, $token->getAttributes(), $user->getRoles());
Expand Down

0 comments on commit e8b4930

Please sign in to comment.