File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ This requires you to implement several methods::
174
174
{
175
175
/**
176
176
* Called on every request to decide if this authenticator should be
177
- * used for the request. Returning false will cause this authenticator
177
+ * used for the request. Returning ` false` will cause this authenticator
178
178
* to be skipped.
179
179
*/
180
180
public function supports(Request $request)
@@ -194,7 +194,8 @@ This requires you to implement several methods::
194
194
public function getUser($credentials, UserProviderInterface $userProvider)
195
195
{
196
196
if (null === $credentials) {
197
- // The token header was empty, authentication fails with 401
197
+ // The token header was empty, authentication fails with HTTP Status
198
+ // Code 401 "Unauthorized"
198
199
return null;
199
200
}
200
201
@@ -220,7 +221,7 @@ This requires you to implement several methods::
220
221
public function onAuthenticationFailure(Request $request, AuthenticationException $exception)
221
222
{
222
223
$data = [
223
- // you may ant to customize or obfuscate the message first
224
+ // you may want to customize or obfuscate the message first
224
225
'message' => strtr($exception->getMessageKey(), $exception->getMessageData())
225
226
226
227
// or to translate this message
You can’t perform that action at this time.
0 commit comments