Skip to content

Commit

Permalink
Merge pull request laravel#1001 from matt-allan/fix-cookie-token-comment
Browse files Browse the repository at this point in the history
[7.0] Fix incorrect comment in TokenGuard::getTokenViaCookie
  • Loading branch information
taylorotwell authored Apr 12, 2019
2 parents f583d11 + fb894e5 commit 2852e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Guards/TokenGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ protected function getTokenViaCookie($request)
}

// We will compare the CSRF token in the decoded API token against the CSRF header
// sent with the request. If the two don't match then this request is sent from
// sent with the request. If they don't match then this request isn't sent from
// a valid source and we won't authenticate the request for further handling.
if (! Passport::$ignoreCsrfToken && (! $this->validCsrf($token, $request) ||
time() >= $token['expiry'])) {
Expand Down

0 comments on commit 2852e73

Please sign in to comment.