Browse Source

Add REMOTE_USER auth

pull/370/head
Chris 6 years ago
parent
commit
1410c41f48
  1. 4
      app/Providers/AppServiceProvider.php

4
app/Providers/AppServiceProvider.php

@ -82,6 +82,10 @@ class AppServiceProvider extends ServiceProvider
session(['current_user' => $user]); 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…
Cancel
Save