|
@ -85,10 +85,12 @@ class AppServiceProvider extends ServiceProvider |
|
|
} |
|
|
} |
|
|
elseif(isset($_SERVER['REMOTE_USER']) && !empty($_SERVER['REMOTE_USER'])) { |
|
|
elseif(isset($_SERVER['REMOTE_USER']) && !empty($_SERVER['REMOTE_USER'])) { |
|
|
$user = User::where('username', $_SERVER['REMOTE_USER'])->first(); |
|
|
$user = User::where('username', $_SERVER['REMOTE_USER'])->first(); |
|
|
|
|
|
if ($user) { |
|
|
\Auth::login($user, true); |
|
|
\Auth::login($user, true); |
|
|
session(['current_user' => $user]); |
|
|
session(['current_user' => $user]); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$alt_bg = ''; |
|
|
$alt_bg = ''; |
|
|