mirror of
https://github.com/open-webui/open-webui
synced 2025-06-23 02:16:52 +00:00
Fix: Ensure Consistent LDAP Settings Save
This commit is contained in:
parent
da5fbc0e39
commit
67e930e1d2
@ -79,6 +79,7 @@
|
|||||||
const updateHandler = async () => {
|
const updateHandler = async () => {
|
||||||
webhookUrl = await updateWebhookUrl(localStorage.token, webhookUrl);
|
webhookUrl = await updateWebhookUrl(localStorage.token, webhookUrl);
|
||||||
const res = await updateAdminConfig(localStorage.token, adminConfig);
|
const res = await updateAdminConfig(localStorage.token, adminConfig);
|
||||||
|
await updateLdapConfig(localStorage.token, ENABLE_LDAP);
|
||||||
await updateLdapServerHandler();
|
await updateLdapServerHandler();
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
@ -401,12 +402,7 @@
|
|||||||
<div class=" font-medium">{$i18n.t('LDAP')}</div>
|
<div class=" font-medium">{$i18n.t('LDAP')}</div>
|
||||||
|
|
||||||
<div class="mt-1">
|
<div class="mt-1">
|
||||||
<Switch
|
<Switch bind:state={ENABLE_LDAP} />
|
||||||
bind:state={ENABLE_LDAP}
|
|
||||||
on:change={async () => {
|
|
||||||
updateLdapConfig(localStorage.token, ENABLE_LDAP);
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user