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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix password is now checked before a user can disable 2 step confirmation
peaklabs-devd2066dd2dce3
diff --git a/app/Livewire/Settings/Index.php b/app/Livewire/Settings/Index.phpindex 9747329f6a..938d0e548c 100644--- a/app/Livewire/Settings/Index.php+++ b/app/Livewire/Settings/Index.php@@ -5,6 +5,8 @@ namespace App\Livewire\Settings;use App\Jobs\CheckForUpdatesJob;use App\Models\InstanceSettings;use App\Models\Server;+use Illuminate\Support\Facades\Auth;+use Illuminate\Support\Facades\Hash;use Livewire\Component;class Index extends Component@@ -185,8 +187,14 @@ class Index extends Componentreturn view('livewire.settings.index');}- public function toggleTwoStepConfirmation()+ public function toggleTwoStepConfirmation($password){+ if (! Hash::check($password, Auth::user()->password)) {+ $this->addError('password', 'The provided password is incorrect.');++ return;+ }+$this->settings->disable_two_step_confirmation = true;$this->settings->save();$this->disable_two_step_confirmation = true;