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.
1 parent 168072b commit a46a856Copy full SHA for a46a856
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