Skip to content

Commit

Permalink
fix login controller
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Jul 31, 2023
1 parent 128bfee commit 659c870
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/Auth/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 659c870

Please sign in to comment.