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'); + } +}