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 a47ed88

Browse filesBrowse files
committed
pass only strings to loadUserByUsername()
1 parent 8194fb2 commit a47ed88
Copy full SHA for a47ed88

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.