Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Refactor function and configuration names for experimental features

Andras Bacsaie66522308e3d
diff --git a/app/Livewire/Admin/Index.php b/app/Livewire/Admin/Index.php
index 26b31e5151..16cd9152e6 100644
--- a/app/Livewire/Admin/Index.php
+++ b/app/Livewire/Admin/Index.php
@@ -14,6 +14,18 @@ class Index extends Component
public $search = '';
+ public function mount()
+ {
+ if (! isCloud()) {
+ return redirect()->route('dashboard');
+ }
+
+ if (auth()->user()->id !== 0) {
+ return redirect()->route('dashboard');
+ }
+ $this->getSubscribers();
+ }
+
public function submitSearch()
{
if ($this->search !== '') {
@@ -38,17 +50,6 @@ class Index extends Component
}
}
- public function mount()
- {
- if (! isCloud()) {
- return redirect()->route('dashboard');
- }
- if (auth()->user()->id !== 0) {
- return redirect()->route('dashboard');
- }
- $this->getSubscribers();
- }
-
public function getSubscribers()
{
$this->inactive_subscribers = User::whereDoesntHave('teams', function ($query) {
diff --git a/routes/web.php b/routes/web.php
index eb1480b9fd..d4cdff7e5b 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -83,9 +83,9 @@ if (isDev()) {
Route::get('/admin', AdminIndex::class)->name('admin.index');
-Route::post('/forgot-password', [Controller::class, 'forgot_password'])->name('password.forgot');
+Route::post('/forgot-password', [Controller::class, 'forgot_password'])->name('password.forgot')->middleware('throttle:forgot-password');
Route::get('/realtime', [Controller::class, 'realtime_test'])->middleware('auth');
-Route::get('/waitlist', WaitlistIndex::class)->name('waitlist.index');
+// Route::get('/waitlist', WaitlistIndex::class)->name('waitlist.index');
Route::get('/verify', [Controller::class, 'verify'])->middleware('auth')->name('verify.email');
Route::get('/email/verify/{id}/{hash}', [Controller::class, 'email_verify'])->middleware(['auth'])->name('verify.verify');
Route::middleware(['throttle:login'])->group(function () {