Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #71 from sumocoders/fix-form-authenticator-support…
Browse files Browse the repository at this point in the history
…-url

Fix FormAuthenticator URL matching
  • Loading branch information
ohvitorino authored Feb 6, 2018
2 parents a1a6a45 + 8ca96d0 commit 7c09a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Security/FormAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function checkCredentials($credentials, UserInterface $user): bool

public function supports(Request $request)
{
return $request->getBasePath() === '/login' && $request->isMethod('POST');
return preg_match('/\/\w{2}\/login/', $request->getRequestUri()) !== false && $request->isMethod('POST');
}

protected function getLoginUrl(): string
Expand Down

0 comments on commit 7c09a03

Please sign in to comment.