Skip to content
Snippets Groups Projects
Commit a4635dd2 authored by Tibo's avatar Tibo
Browse files

add APP_ALLOW_REGISTRATION configuration directive

parent 7132dc12
No related branches found
No related tags found
No related merge requests found
Pipeline #12768 passed
......@@ -14,6 +14,8 @@ return [
*/
'name' => env('APP_NAME', 'Monitoring'),
'allow_registration' => env("APP_ALLOW_REGISTRATION", true),
'proxy' => env('PROXY', null),
......
......@@ -24,7 +24,7 @@ Route::get('/', function () {
return view('index');
});
Auth::routes();
Auth::routes(['register' => config("app.allow_registration")]);
Route::get("home", function () {
return redirect(action("OrganizationController@index"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment