Skip to content

Commit 6dde99d

Browse files
committed
Merge branch '5.1' into 5.x
* 5.1: Fix invalid variable name
2 parents 9fbf537 + f3d595d commit 6dde99d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/guard_authentication.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ This requires you to implement several methods::
173173
// The "username" in this case is the apiToken, see the key `property`
174174
// of `your_db_provider` in `security.yaml`.
175175
// If this returns a user, checkCredentials() is called next:
176-
return $userProvider->loadUserByUsername($apiToken);
176+
return $userProvider->loadUserByUsername($credentials);
177177
}
178178

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

0 commit comments

Comments
 (0)