make sure client_id was populated, otherwise we try to create webhooks after reset without a client_id

This commit is contained in:
David Remer 2020-08-26 08:35:35 +03:00
parent 74eacf81b3
commit 6378287962

View file

@ -93,7 +93,7 @@ class SettingsListener
if (! $this->settings->has('client_id') && $settings['client_id']) {
$this->webhookRegistrar->register();
}
if ($this->settings->has('client_id')) {
if ($this->settings->has('client_id') && $this->settings->get('client_id')) {
$currentSecret = $this->settings->has('client_secret') ?
$this->settings->get('client_secret') : '';
if (