fix: Login non funzionante

This commit is contained in:
Maicol Battistini 2023-05-08 19:31:18 +02:00
parent 4ff43648f1
commit a92c7ce8b5
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -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)) {