fix: hide "change password form" in noauth setting
This commit is contained in:
parent
94ec786d34
commit
9d078349ba
@ -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;
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user