From a92c7ce8b5755598c8e8de1e48782a896f14992b Mon Sep 17 00:00:00 2001 From: Maicol Battistini Date: Mon, 8 May 2023 19:31:18 +0200 Subject: [PATCH] fix: Login non funzionante --- app/Providers/FortifyServiceProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Providers/FortifyServiceProvider.php b/app/Providers/FortifyServiceProvider.php index 875ec73fb..30ca0ef67 100644 --- a/app/Providers/FortifyServiceProvider.php +++ b/app/Providers/FortifyServiceProvider.php @@ -26,8 +26,8 @@ class FortifyServiceProvider extends ServiceProvider public function boot(): void { Fortify::authenticateUsing(static function (Request $request) { - $user = User::where('email', $request->input('username') - ->orWhere('username', $request->input('username'))) + $user = User::where('email', $request->input('username')) + ->orWhere('username', $request->input('username')) ->first(); if ($user && Hash::check($request->input('password'), $user->password)) {