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; }