Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public getChanges() {
let allChanges = getChanges(this.originalConfig, this.currentConfig);
let changes = {};
for (let prop in allChanges) {
if (prop.startsWith('ldap_')
|| prop.startsWith('uaa_')
|| prop.startsWith('oidc_')
|| prop === 'auth_mode'
|| prop === 'project_creattion_restriction'
|| prop === 'self_registration'
|| prop.startsWith('http_')
) {
changes[prop] = allChanges[prop];
}
}
return changes;
}
public getChanges() {
let allChanges = getChanges(this.originalConfig, this.currentConfig);
let changes = {};
for (let prop in allChanges) {
if (prop.startsWith('email_')) {
changes[prop] = allChanges[prop];
}
}
return changes;
}