From 659c870eb9bb3c06b5d43d6b113bb79f0fa0f028 Mon Sep 17 00:00:00 2001 From: Didier Date: Mon, 31 Jul 2023 11:38:05 +0200 Subject: [PATCH] fix login controller --- app/Http/Controllers/Auth/LoginController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php index 5fac2034..f3061792 100644 --- a/app/Http/Controllers/Auth/LoginController.php +++ b/app/Http/Controllers/Auth/LoginController.php @@ -2,6 +2,7 @@ namespace App\Http\Controllers\Auth; +use App\Models\User; use App\Http\Controllers\Controller; use Config; use Illuminate\Foundation\Auth\AuthenticatesUsers; @@ -62,7 +63,7 @@ protected function attemptLogin(Request $request) $password = $credentials['password']; try { if ($this->ldapLogin($username, $password)) { - $user = \App\User::where('login', $username)->first(); + $user = User::where('login', $username)->first(); if (! $user) { return false; }