Add REMOTE_USER auth
This commit is contained in:
parent
5f524563cf
commit
1410c41f48
1 changed files with 4 additions and 0 deletions
|
@ -82,6 +82,10 @@ class AppServiceProvider extends ServiceProvider
|
|||
session(['current_user' => $user]);
|
||||
}
|
||||
}
|
||||
elseif(isset($_SERVER['REMOTE_USER']) && !empty($_SERVER['REMOTE_USER'])) {
|
||||
$user = User::where('username', $_SERVER['REMOTE_USER'])->first();
|
||||
\Auth::loginUsingId($user->id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue