From 6075dcca2d17eb64ccf07660e7240a027c73fba5 Mon Sep 17 00:00:00 2001 From: Chris Hunt Date: Thu, 17 Jul 2025 14:19:02 +0100 Subject: [PATCH] Fix importing apps and logging in --- app/Http/Controllers/ItemController.php | 2 +- config/auth.php | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/ItemController.php b/app/Http/Controllers/ItemController.php index c0d9fdf9f..d5c685ee2 100644 --- a/app/Http/Controllers/ItemController.php +++ b/app/Http/Controllers/ItemController.php @@ -322,7 +322,7 @@ public static function storelogic(Request $request, $id = null): Item 'user_id' => $current_user->getId(), ]); - if ($request->input('appid') === 'null') { + if ($request->input('appid') === 'null' || $request->input('appid') === null) { $request->merge([ 'class' => null, ]); diff --git a/config/auth.php b/config/auth.php index 1642fb24f..d31130b45 100644 --- a/config/auth.php +++ b/config/auth.php @@ -9,5 +9,11 @@ 'hash' => false, ], ], + 'providers' => [ + 'users' => [ + 'driver' => 'eloquent', + 'model' => App\User::class, // Update this to the correct namespace + ], + ], ];