fix fetching meta data with IdP id 1

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2022-09-21 14:55:29 +02:00
parent 7a78b3c775
commit 676043b50a
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 1 additions and 9 deletions

View File

@ -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) {