Skip to content

Commit 1c426f6

Browse files
committed
[#2199] Porting fix up to 2.1 branch
1 parent 5743c76 commit 1c426f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/security/entity_provider.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ For more details on each of these, see :class:`Symfony\\Component\\Security\\Cor
185185
186186
public function isEqualTo(UserInterface $user)
187187
{
188-
return $this->username === $user->getUsername();
188+
return $this->id === $user->getId();
189189
}
190190
191191
.. note::

0 commit comments

Comments
 (0)