mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-09 11:16:39 -05:00
Use the Dashboard canRegister function to determine whether the register function should be allowed instead of implementing the same logic twice
This commit is contained in:
parent
a9acd16507
commit
74cebe30f5
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
|
||||
use App\Dashboard;
|
||||
use App\Utilities\Language;
|
||||
|
||||
/*
|
||||
|
@ -19,7 +20,7 @@ use App\Utilities\Language;
|
|||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
Route::auth([ 'register' => env('REGISTRATION', false) === true || env('REGISTRATION', false) === \Request::ip() ]);
|
||||
Route::auth([ 'register' => Dashboard::canRegister() ]);
|
||||
Route::get('/logout', 'Auth\LoginController@logout');
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue