mirror of
https://github.com/nextcloud/server.git
synced 2026-06-04 22:35:24 -04:00
fix(user_ldap): Properly update local variable for username and password in server settings
Signed-off-by: Louis Chmn <louis@chmn.me>
This commit is contained in:
parent
b801f583d8
commit
2174e0b4fe
1 changed files with 13 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ import { showInfo } from '@nextcloud/dialogs'
|
|||
import { n, t } from '@nextcloud/l10n'
|
||||
import { NcButton, NcCheckboxRadioSwitch, NcTextArea, NcTextField } from '@nextcloud/vue'
|
||||
import { storeToRefs } from 'pinia'
|
||||
import { computed, ref } from 'vue'
|
||||
import { computed, ref, watch } from 'vue'
|
||||
import ContentCopy from 'vue-material-design-icons/ContentCopy.vue'
|
||||
import Delete from 'vue-material-design-icons/Delete.vue'
|
||||
import { callWizard } from '../../services/ldapConfigService.ts'
|
||||
|
|
@ -120,6 +120,18 @@ const needsToSaveCredentials = computed(() => {
|
|||
return ldapConfigProxy.value.ldapAgentName !== localLdapAgentName.value || ldapConfigProxy.value.ldapAgentPassword !== localLdapAgentPassword.value
|
||||
})
|
||||
|
||||
watch(
|
||||
ldapConfigProxy,
|
||||
(newVal) => {
|
||||
localLdapAgentName.value = newVal.ldapAgentName
|
||||
if (newVal.ldapAgentPassword === '***') {
|
||||
localLdapAgentPassword.value = ''
|
||||
} else {
|
||||
localLdapAgentPassword.value = newVal.ldapAgentPassword
|
||||
}
|
||||
},
|
||||
)
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue