Skip to content

Commit

Permalink
fix: not logged in means logging in
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrinsieboy committed Jan 24, 2024
1 parent ca726bd commit b5582ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/Http/Controllers/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public function index()
$userData = auth()->user();

if (!$userData) {
$userData = User::find(1);
auth()->login($userData);
Inertia::location('/');
}

// Get the Statistics
Expand Down

0 comments on commit b5582ff

Please sign in to comment.