From 99abdf2f9bb7b6f776ce9b5c007aaa4057e2c5de Mon Sep 17 00:00:00 2001 From: eugenegp Date: Wed, 15 Jan 2020 13:00:20 +0200 Subject: [PATCH] fixed User logout if roles count is not equal --- Security/HmacAuthenticator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Security/HmacAuthenticator.php b/Security/HmacAuthenticator.php index 2ed0238..082976c 100644 --- a/Security/HmacAuthenticator.php +++ b/Security/HmacAuthenticator.php @@ -83,7 +83,7 @@ public function authenticateToken(TokenInterface $token, UserProviderInterface $ $user, $queryString, $providerKey, - array_merge($user->getRoles(), ['ROLE_HMAC']) + $user->getRoles() ); }