8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e23f2d4 + a46a856 commit de11d3eCopy full SHA for de11d3e
cookbook/security/guard-authentication.rst
@@ -189,12 +189,12 @@ This requires you to implement six methods::
189
190
public function getUser($credentials, UserProviderInterface $userProvider)
191
{
192
- $apiToken = $credentials['token'];
+ $apiKey = $credentials['token'];
193
194
// if null, authentication will fail
195
// if a User object, checkCredentials() is called
196
return $this->em->getRepository('AppBundle:User')
197
- ->findOneBy(array('apiToken' => $apiToken));
+ ->findOneBy(array('apiKey' => $apiKey));
198
}
199
200
public function checkCredentials($credentials, UserInterface $user)
0 commit comments