fix error
This commit is contained in:
parent
878db64878
commit
9940aa68e7
@ -8,6 +8,7 @@
|
||||
use App\Actions\Fortify\UpdateUserProfileInformation;
|
||||
use App\Models\InstanceSettings;
|
||||
use App\Models\User;
|
||||
use App\Models\Waitlist;
|
||||
use Illuminate\Cache\RateLimiting\Limit;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
@ -45,15 +46,19 @@ public function boot(): void
|
||||
|
||||
Fortify::createUsersUsing(CreateNewUser::class);
|
||||
Fortify::registerView(function () {
|
||||
ray('asd');
|
||||
$settings = InstanceSettings::get();
|
||||
$waiting_in_line = Waitlist::whereVerified(true)->count();
|
||||
if (!$settings->is_registration_enabled) {
|
||||
return redirect()->route('login');
|
||||
}
|
||||
if (config('coolify.waitlist')) {
|
||||
return view('auth.waitlist');
|
||||
return view('auth.waitlist',[
|
||||
'waiting_in_line' => $waiting_in_line,
|
||||
]);
|
||||
} else {
|
||||
return view('auth.register');
|
||||
return view('auth.register',[
|
||||
'waiting_in_line' => $waiting_in_line,
|
||||
]);
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user