Skip to content

Commit de11d3e

Browse files
committed
minor #6027 Update guard-authentication.rst (rvanginneken)
This PR was merged into the 2.8 branch. Discussion ---------- Update guard-authentication.rst Commits ------- a46a856 Update guard-authentication.rst
2 parents e23f2d4 + a46a856 commit de11d3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cookbook/security/guard-authentication.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,12 @@ This requires you to implement six methods::
189189

190190
public function getUser($credentials, UserProviderInterface $userProvider)
191191
{
192-
$apiToken = $credentials['token'];
192+
$apiKey = $credentials['token'];
193193

194194
// if null, authentication will fail
195195
// if a User object, checkCredentials() is called
196196
return $this->em->getRepository('AppBundle:User')
197-
->findOneBy(array('apiToken' => $apiToken));
197+
->findOneBy(array('apiKey' => $apiKey));
198198
}
199199

200200
public function checkCredentials($credentials, UserInterface $user)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy