From 831860bf8aaf7e544735706c0925b34e2d3fe65f Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Thu, 14 Nov 2019 21:04:01 -0500 Subject: [PATCH] Only show the registration page if registration is enabled or the IP is set correctly, and pull in this update to the traditional-bootstrap --- routes/web.php | 2 +- traditional-bootstrap/routes/web.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/web.php b/routes/web.php index e755a16..f95eb9d 100644 --- a/routes/web.php +++ b/routes/web.php @@ -19,7 +19,7 @@ use App\Utilities\Language; |-------------------------------------------------------------------------- */ -Route::auth([ 'register' => env('REGISTRATION', false) ]); +Route::auth([ 'register' => env('REGISTRATION', false) === true || env('REGISTRATION', false) === \Request::ip() ]); Route::get('/logout', 'Auth\LoginController@logout'); /* diff --git a/traditional-bootstrap/routes/web.php b/traditional-bootstrap/routes/web.php index 312e67a..2052b5a 100644 --- a/traditional-bootstrap/routes/web.php +++ b/traditional-bootstrap/routes/web.php @@ -19,7 +19,7 @@ use App\Utilities\Language; |-------------------------------------------------------------------------- */ -Route::auth(); +Route::auth([ 'register' => env('REGISTRATION', false) === true || env('REGISTRATION', false) === \Request::ip() ]); Route::get('/logout', 'Auth\LoginController@logout'); /*