8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5832a2 commit df4266eCopy full SHA for df4266e
security/guard_authentication.rst
@@ -165,14 +165,14 @@ This requires you to implement six methods::
165
{
166
/**
167
* Called on every request. Return whatever credentials you want to
168
- * be passed to getUser(). Returning null will cause authentication
169
- * to be successful, skipping the rest of the authentication process.
+ * be passed to getUser(). Returning null will cause this authenticator
+ * to be skipped.
170
*/
171
public function getCredentials(Request $request)
172
173
if (!$token = $request->headers->get('X-AUTH-TOKEN')) {
174
- // No token?
175
- $token = null;
+ // No token?
+ $token = '';
176
}
177
178
// What you return here will be passed to getUser() as $credentials
0 commit comments