Only show the registration page if registration is enabled or the IP is set correctly, and pull in this update to the traditional-bootstrap

This commit is contained in:
Kevin MacMartin 2019-11-14 21:04:01 -05:00
parent 711ad82261
commit 831860bf8a
2 changed files with 2 additions and 2 deletions

View file

@ -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');
/*

View file

@ -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');
/*