mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-15 22:14:53 +00:00
Update app/Livewire/SettingsOauth.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
f0db097a90
commit
8a3dc19d19
1 file changed
+4
@@ -50,6 +50,10 @@ class SettingsOauth extends Component
|
|||||||
$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'],
|
||||||
|
|||||||
Reference in new issue
Block a user