Skip to content

Commit ac29865

Browse files
authored
Revert "Revert "Set challenge on UnauthorizedHttpException (dingo#1526)" (dingo#1528)" (dingo#1530)
This reverts commit 660c071.
1 parent 660c071 commit ac29865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Auth/Auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ protected function throwUnauthorizedException(array $exceptionStack)
110110
$exception = array_shift($exceptionStack);
111111

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

116116
throw $exception;

0 commit comments

Comments
 (0)