Skip to content

Commit 843151c

Browse files
committed
avoid rejecting user login if listLdapConfiguration is not allowed
1 parent a7c2a05 commit 843151c

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

ui/src/store/modules/user.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,7 @@ const user = {
422422
api('listLdapConfigurations').then(response => {
423423
const ldapEnable = (response.ldapconfigurationresponse.count > 0)
424424
commit('SET_LDAP', ldapEnable)
425-
}).catch(error => {
426-
reject(error)
425+
}).catch(ignored => {
427426
})
428427

429428
api('cloudianIsEnabled').then(response => {
@@ -551,7 +550,7 @@ const user = {
551550
}
552551
})
553552
},
554-
UpdateConfiguration ({ commit }) {
553+
UpdateLdapConfigurationFlag ({ commit }) {
555554
return new Promise((resolve, reject) => {
556555
api('listLdapConfigurations').then(response => {
557556
const ldapEnable = (response.ldapconfigurationresponse.count > 0)

ui/src/views/AutogenView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1600,7 +1600,7 @@ export default {
16001600
}
16011601
}
16021602
if (['addLdapConfiguration', 'deleteLdapConfiguration'].includes(action.api)) {
1603-
this.$store.dispatch('UpdateConfiguration')
1603+
this.$store.dispatch('UpdateLdapConfigurationFlag')
16041604
}
16051605
if (jobId) {
16061606
eventBus.emit('update-resource-state', { selectedItems: this.selectedItems, resource, state: 'InProgress', jobid: jobId })

0 commit comments

Comments
 (0)