Update app/Livewire/SettingsOauth.php

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Andras Bacsai 2025-10-27 17:01:24 +01:00
parent f0db097a90
commit 8a3dc19d19

View file

@ -50,6 +50,10 @@ private function updateOauthSettings(?string $provider = null)
$oauthData = $this->oauth_settings_map[$provider];
$oauth = OauthSetting::find($oauthData['id']);
if (!$oauth) {
throw new \Exception('OAuth setting for '.$provider.' not found. It may have been deleted.');
}
$oauth->fill([
'enabled' => $oauthData['enabled'],
'client_id' => $oauthData['client_id'],