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

Appearance settings

Commit 81b8dcf

Browse filesBrowse files
committed
minor symfony#7912 pass only strings to loadUserByUsername() (xabbuh)
This PR was merged into the 2.8 branch. Discussion ---------- pass only strings to loadUserByUsername() This completes symfony#7065 as since the change made there the `token` key can refer to `null`. Commits ------- a47ed88 pass only strings to loadUserByUsername()
2 parents 8194fb2 + a47ed88 commit 81b8dcf
Copy full SHA for 81b8dcf

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

‎security/guard_authentication.rst

Copy file name to clipboardExpand all lines: security/guard_authentication.rst
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ This requires you to implement six methods::
186186
{
187187
$apiKey = $credentials['token'];
188188

189+
if (null === $apiKey) {
190+
return;
191+
}
192+
189193
// if null, authentication will fail
190194
// if a User object, checkCredentials() is called
191195
return $userProvider->loadUserByUsername($apiKey);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.