From 25012dac9e7daaa3ebd8503719a9ee72802e88b2 Mon Sep 17 00:00:00 2001 From: Jannik Date: Wed, 14 Oct 2020 14:00:01 +0200 Subject: [PATCH] Fix invalid variable name --- security/guard_authentication.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/guard_authentication.rst b/security/guard_authentication.rst index 945d9deccc8..edbd6f122ee 100644 --- a/security/guard_authentication.rst +++ b/security/guard_authentication.rst @@ -168,7 +168,7 @@ This requires you to implement several methods:: // The "username" in this case is the apiToken, see the key `property` // of `your_db_provider` in `security.yaml`. // If this returns a user, checkCredentials() is called next: - return $userProvider->loadUserByUsername($apiToken); + return $userProvider->loadUserByUsername($credentials); } public function checkCredentials($credentials, UserInterface $user)