Skip to content

Commit

Permalink
update argument in UsernamePasswordToken
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamKasp committed Nov 30, 2021
1 parent fef6243 commit 6339528
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/Sylius/Bundle/CoreBundle/Security/UserImpersonator.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public function impersonate(UserInterface $user): void
{
$token = new UsernamePasswordToken(
$user,
$user->getPassword(),
$this->firewallContextName,
array_map(/** @param object|string $role */ static function ($role): string { return (string) $role; }, $user->getRoles())
);
Expand Down
1 change: 0 additions & 1 deletion src/Sylius/Bundle/UserBundle/Security/UserLogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ protected function createToken(UserInterface $user, string $firewallName): Usern
{
return new UsernamePasswordToken(
$user,
null,
$firewallName,
array_map(/** @param object|string $role */ static function ($role): string { return (string) $role; }, $user->getRoles())
);
Expand Down

0 comments on commit 6339528

Please sign in to comment.