Skip to content

Commit 93274ab

Browse files
committed
minor #13197 Maybe the login path should be excluded (danielsan80)
This PR was merged into the 4.4 branch. Discussion ---------- Maybe the login path should be excluded Maybe the login path should be excluded from the target pathes saved. Commits ------- 292b5e7 Maybe the login path should be excluded
2 parents e43907f + 292b5e7 commit 93274ab

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

security/form_login_setup.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,11 @@ whenever the user browses a page::
453453
public function onKernelRequest(RequestEvent $event): void
454454
{
455455
$request = $event->getRequest();
456-
if (!$event->isMasterRequest() || $request->isXmlHttpRequest()) {
456+
if (
457+
!$event->isMasterRequest()
458+
|| $request->isXmlHttpRequest()
459+
|| 'app_login' === $request->attributes->get('_route')
460+
) {
457461
return;
458462
}
459463

0 commit comments

Comments
 (0)