Commit 3c4d1ed9 authored by Zorn's avatar Zorn

Fixed removing last custom provider

parent 190992b0
......@@ -5,7 +5,7 @@
<name>Social Login</name>
<summary>Social login via OAuth or OpenID</summary>
<description></description>
<version>1.10.0</version>
<version>1.10.1</version>
<licence>agpl</licence>
<author>zorn-v</author>
<namespace>SocialLogin</namespace>
......
......@@ -60,6 +60,9 @@ class SettingsController extends Controller
$this->config->setAppValue($this->appName, 'prevent_create_email_exists', $prevent_create_email_exists ? true : false);
$this->config->setAppValue($this->appName, 'oauth_providers', json_encode($providers));
$openid_providers = $openid_providers ?: [];
$custom_oidc_providers = $custom_oidc_providers ?: [];
$custom_oauth2_providers = $custom_oauth2_providers ?: [];
try {
$names = array_keys($providers);
$this->checkProviders($openid_providers, $names);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment