Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9fa23e3

Browse files
committed
!squash returned salt check stmt
1 parent d631539 commit 9fa23e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Security/Core/Authentication/Token/AbstractToken.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,10 @@ private function hasUserChanged(UserInterface $user)
254254
return true;
255255
}
256256

257+
if ($this->user->getSalt() !== $user->getSalt()) {
258+
return true;
259+
}
260+
257261
$rolesChanged = \count(
258262
array_diff(
259263
array_map([$this, 'castRole'], (array) $this->user->getRoles()),

0 commit comments

Comments
 (0)