diff options
author | Camil Staps | 2016-09-25 23:56:46 +0200 |
---|---|---|
committer | Camil Staps | 2016-09-26 01:02:05 +0200 |
commit | 33ad0c14d168d36a4e7ad42dc6aa6a37a7335849 (patch) | |
tree | 0543b7d92f7f0b7706f4313ba10b18483f747798 /app/Http/Middleware/Login.php | |
parent | Added unique visitors to statistics (diff) |
Change from lumen 5.2 to laravel 5.3 (Resolves #1)
Diffstat (limited to 'app/Http/Middleware/Login.php')
-rw-r--r-- | app/Http/Middleware/Login.php | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/app/Http/Middleware/Login.php b/app/Http/Middleware/Login.php deleted file mode 100644 index 8a71104..0000000 --- a/app/Http/Middleware/Login.php +++ /dev/null @@ -1,34 +0,0 @@ -<?php - -namespace App\Http\Middleware; - -use Closure; -use Illuminate\Support\Facades\Auth; - -class Login { - /** - * Create a new middleware instance. - * - * @param \Illuminate\Contracts\Auth\Factory $auth - * @return void - */ - public function __construct() { - } - - /** - * Handle an incoming request. - * - * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @param string|null $guard - * @return mixed - */ - public function handle($request, Closure $next, $guard = null) { - if ($request->has('login') && !Auth::check()) { - return response('Unauthorized.', 401) - ->header('WWW-Authenticate', 'Basic realm="Please enter your email and password"'); - } - - return $next($request); - } -} |