Skip to content

Commit

Permalink
#18 fix PasswordPageController to comply with SW Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
iMiMWeis committed Feb 29, 2024
1 parent ec10959 commit 124f342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Storefront/Controller/PasswordPageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function showLogin(Request $request, SalesChannelContext $salesChannelCon
$page = $this->genericPageLoader->load($request, $salesChannelContext);

return $this->renderStorefront('@ImiDiPasswordProtectedPages/storefront/page/restricted.html.twig', [
'navigationId' => $request->get('navigationId'),
'navigationId' => json_decode($request->query->get('redirectParameters'))->navigationId,
'page' => $page,
]);
}
Expand All @@ -44,7 +44,7 @@ public function showLogin(Request $request, SalesChannelContext $salesChannelCon
*/
public function login(Request $request): Response
{
$navigationId = $request->get('navigationId');
$navigationId = json_decode($request->query->get('redirectParameters'))->navigationId;

if(!$request->request->has('password')) {
$this->addFlash(self::DANGER, $this->trans('ImiDi.password-incorrect'));
Expand Down

0 comments on commit 124f342

Please sign in to comment.