Skip to content

Commit

Permalink
Revert "Set challenge on UnauthorizedHttpException (#1526)" (#1528)
Browse files Browse the repository at this point in the history
This reverts commit 840e026.
  • Loading branch information
thilanga authored Feb 23, 2018
1 parent 840e026 commit 660c071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Auth/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected function throwUnauthorizedException(array $exceptionStack)
$exception = array_shift($exceptionStack);

if ($exception === null) {
$exception = new UnauthorizedHttpException('dingo', 'Failed to authenticate because of bad credentials or an invalid authorization header.');
$exception = new UnauthorizedHttpException(null, 'Failed to authenticate because of bad credentials or an invalid authorization header.');
}

throw $exception;
Expand Down

0 comments on commit 660c071

Please sign in to comment.