Update app/Livewire/SettingsOauth.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
f0db097a90
commit
8a3dc19d19
1 changed files with 4 additions and 0 deletions
|
|
@ -50,6 +50,10 @@ private function updateOauthSettings(?string $provider = null)
|
||||||
$oauthData = $this->oauth_settings_map[$provider];
|
$oauthData = $this->oauth_settings_map[$provider];
|
||||||
$oauth = OauthSetting::find($oauthData['id']);
|
$oauth = OauthSetting::find($oauthData['id']);
|
||||||
|
|
||||||
|
if (!$oauth) {
|
||||||
|
throw new \Exception('OAuth setting for '.$provider.' not found. It may have been deleted.');
|
||||||
|
}
|
||||||
|
|
||||||
$oauth->fill([
|
$oauth->fill([
|
||||||
'enabled' => $oauthData['enabled'],
|
'enabled' => $oauthData['enabled'],
|
||||||
'client_id' => $oauthData['client_id'],
|
'client_id' => $oauthData['client_id'],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue