From 5647c0a5539fc0f6374a9f7fa214fac0ff546829 Mon Sep 17 00:00:00 2001 From: klawgulp-ship-it Date: Wed, 11 Mar 2026 00:42:05 -0500 Subject: [PATCH] feat: add OAuth-only self-registration setting --- app/Livewire/Settings/OauthRegistration.php | 30 +++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 app/Livewire/Settings/OauthRegistration.php diff --git a/app/Livewire/Settings/OauthRegistration.php b/app/Livewire/Settings/OauthRegistration.php new file mode 100644 index 000000000..58ab13742 --- /dev/null +++ b/app/Livewire/Settings/OauthRegistration.php @@ -0,0 +1,30 @@ +is_oauth_registration_enabled = (bool) $settings->is_oauth_registration_enabled; + } + + public function save() + { + $settings = instanceSettings(); + $settings->is_oauth_registration_enabled = $this->is_oauth_registration_enabled; + $settings->save(); + + $this->dispatch('success', 'OAuth registration setting saved.'); + } + + public function render() + { + return view('livewire.settings.oauth-registration'); + } +}