diff --git a/CHANGELOG.md b/CHANGELOG.md index e0ea711..f973df3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.3.3 + + * Reverted BC break (persistence SamlUser after calling setSamlAttributes). + ## 2.3.2 * Added persistence SamlUser after calling setSamlAttributes while authentication. diff --git a/Security/Http/Authenticator/SamlAuthenticator.php b/Security/Http/Authenticator/SamlAuthenticator.php index 20587dc..32ea480 100644 --- a/Security/Http/Authenticator/SamlAuthenticator.php +++ b/Security/Http/Authenticator/SamlAuthenticator.php @@ -138,10 +138,6 @@ function ($identifier) use ($attributes) { if ($user instanceof SamlUserInterface) { $user->setSamlAttributes($attributes); - if ($this->entityManager) { - $this->entityManager->persist($user); - $this->entityManager->flush(); - } } return $user;