Skip to content

Commit 9ba88ab

Browse files
committed
fix: patch up default redirects
1 parent 0100345 commit 9ba88ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Auth.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ class Auth
4141
public function __construct()
4242
{
4343
$this->middleware('auth.required', function () {
44-
response()->redirect('/auth/login', 401);
44+
response()->redirect('/auth/login');
4545
});
4646

4747
$this->middleware('auth.guest', function () {
48-
response()->json('/dashboard', 401);
48+
response()->redirect('/dashboard');
4949
});
5050

5151
$this->middleware('is', function ($role) {

0 commit comments

Comments
 (0)