diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-09-21 15:55:29 +0300 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-09-21 15:55:29 +0300 |
commit | 676043b50af81776512fdabdfcd28fde8bb68628 (patch) | |
tree | 1c2fdcd27f7766209bc9914632e2fe55a154948c | |
parent | 7a78b3c775e3ff7e4fd14a4d411ba121a012f1f5 (diff) |
fix fetching meta data with IdP id 1fix/noid/metadata-idp-1
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r-- | js/admin.js | 10 |
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) { |