Skip to content

Commit

Permalink
Merge pull request #96 from alexander-schranz/patch-1
Browse files Browse the repository at this point in the history
Use the router to get the correct path from the connect facebook check route
  • Loading branch information
weaverryan authored Apr 20, 2018
2 parents ee11f72 + 5ea18c9 commit 62e808c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ class MyFacebookAuthenticator extends SocialAuthenticator
public function supports(Request $request)
{
// continue ONLY if the URL matches the check URL
return $request->getPathInfo() == '/connect/facebook/check';
// continue ONLY if the current ROUTE matches the check ROUTE
return $request->attributes->get('_route') === 'connect_facebook_check';
}
public function getCredentials(Request $request)
Expand Down

0 comments on commit 62e808c

Please sign in to comment.