Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-09-22 16:00:44 +0300
committerGitHub <noreply@github.com>2022-09-22 16:00:44 +0300
commitf1cc92dc34d01dd120b5f0d27d53d92baf87c2af (patch)
treeb66b628a293abfa398299c8169e6263ac87656c0
parentb038c1f5f70b98ecf077a290f8594509d696643d (diff)
parent676043b50af81776512fdabdfcd28fde8bb68628 (diff)
Merge pull request #656 from nextcloud/fix/noid/metadata-idp-1
fix fetching meta data with IdP id 1
-rw-r--r--js/admin.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/js/admin.js b/js/admin.js
index e87c3b04..a190f1fe 100644
--- a/js/admin.js
+++ b/js/admin.js
@@ -60,14 +60,6 @@
OCP.AppConfig.setValue('user_saml', 'type', '', {success: function() {location.reload();}});
},
-
- getConfigIdentifier: function() {
- if (this.currentConfig === '1') {
- return '';
- }
- return this.currentConfig + '-';
- },
-
/**
* Add a new provider
*/
@@ -131,7 +123,7 @@
// Checks on each request whether the settings make sense or not
$.ajax({
url: OC.generateUrl('/apps/user_saml/saml/metadata'),
- data: { idp: OCA.User_SAML.Admin.getConfigIdentifier() },
+ data: { idp: this.currentConfig },
type: 'GET'
}).fail(function (e) {
if (e.status === 500) {