Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitde11d3e

Browse files
committed
minor#6027 Update guard-authentication.rst (rvanginneken)
This PR was merged into the 2.8 branch.Discussion----------Update guard-authentication.rstCommits-------a46a856 Update guard-authentication.rst
2 parentse23f2d4 +a46a856 commitde11d3e

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)

[8]ページ先頭

©2009-2025 Movatter.jp