fix: hide "change password form" in noauth setting

This commit is contained in:
ArielLeyva 2026-01-03 09:20:59 -05:00
parent 94ec786d34
commit 9d078349ba

View File

@ -44,7 +44,7 @@
</form> </form>
</div> </div>
<div class="column"> <div v-if="!isHidePasswordForm" class="column">
<form <form
class="card" class="card"
v-if="!authStore.user?.lockPassword" v-if="!authStore.user?.lockPassword"
@ -118,6 +118,7 @@ const singleClick = ref<boolean>(false);
const dateFormat = ref<boolean>(false); const dateFormat = ref<boolean>(false);
const locale = ref<string>(""); const locale = ref<string>("");
const aceEditorTheme = ref<string>(""); const aceEditorTheme = ref<string>("");
const isHidePasswordForm = ref<boolean>(false);
const passwordClass = computed(() => { const passwordClass = computed(() => {
const baseClass = "input input--block"; const baseClass = "input input--block";
@ -144,6 +145,7 @@ onMounted(async () => {
layoutStore.loading = false; layoutStore.loading = false;
const { authMethod } = await settings.get(); const { authMethod } = await settings.get();
isCurrentPasswordRequired.value = authMethod == "json"; isCurrentPasswordRequired.value = authMethod == "json";
isHidePasswordForm.value = authMethod == "noauth";
return true; return true;
}); });