Skip to content

Commit

Permalink
Fixed removing last custom provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorn committed Sep 9, 2018
1 parent 190992b commit 3c4d1ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 3 additions & 0 deletions lib/Controller/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ public function saveAdmin(
$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);
Expand Down

0 comments on commit 3c4d1ed

Please sign in to comment.