fix: refs #7699 fix vnInputPassword
This commit is contained in:
parent
60f3ea838a
commit
cd6cc5c865
|
@ -6,6 +6,7 @@ import FormModelPopup from 'components/FormModelPopup.vue';
|
||||||
import VnSelect from 'src/components/common/VnSelect.vue';
|
import VnSelect from 'src/components/common/VnSelect.vue';
|
||||||
import FetchData from 'components/FetchData.vue';
|
import FetchData from 'components/FetchData.vue';
|
||||||
import VnInput from 'src/components/common/VnInput.vue';
|
import VnInput from 'src/components/common/VnInput.vue';
|
||||||
|
import VnInputPassword from 'src/components/common/VnInputPassword.vue';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
@ -61,10 +62,10 @@ const redirectToAccountBasicData = (_, { id }) => {
|
||||||
hide-selected
|
hide-selected
|
||||||
:rules="validate('VnUser.roleFk')"
|
:rules="validate('VnUser.roleFk')"
|
||||||
/>
|
/>
|
||||||
<VnInput
|
<VnInputPassword
|
||||||
v-model="data.password"
|
v-model="data.password"
|
||||||
:label="t('ldap.password')"
|
:label="t('ldap.password')"
|
||||||
type="password"
|
:toggle-visibility="true"
|
||||||
:rules="validate('VnUser.password')"
|
:rules="validate('VnUser.password')"
|
||||||
/>
|
/>
|
||||||
<QCheckbox
|
<QCheckbox
|
||||||
|
|
|
@ -8,6 +8,7 @@ import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
|
||||||
import { useArrayData } from 'src/composables/useArrayData';
|
import { useArrayData } from 'src/composables/useArrayData';
|
||||||
import useNotify from 'src/composables/useNotify.js';
|
import useNotify from 'src/composables/useNotify.js';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
import VnInputPassword from 'src/components/common/VnInputPassword.vue';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const { notify } = useNotify();
|
const { notify } = useNotify();
|
||||||
|
@ -128,10 +129,9 @@ onMounted(async () => await getInitialLdapConfig());
|
||||||
:required="true"
|
:required="true"
|
||||||
:rules="validate('LdapConfig.rdn')"
|
:rules="validate('LdapConfig.rdn')"
|
||||||
/>
|
/>
|
||||||
<VnInput
|
<VnInputPassword
|
||||||
:label="t('ldap.password')"
|
:label="t('ldap.password')"
|
||||||
clearable
|
clearable
|
||||||
type="password"
|
|
||||||
v-model="data.password"
|
v-model="data.password"
|
||||||
:required="true"
|
:required="true"
|
||||||
:rules="validate('LdapConfig.password')"
|
:rules="validate('LdapConfig.password')"
|
||||||
|
|
|
@ -7,6 +7,7 @@ import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
||||||
import VnInput from 'src/components/common/VnInput.vue';
|
import VnInput from 'src/components/common/VnInput.vue';
|
||||||
import VnSection from 'src/components/common/VnSection.vue';
|
import VnSection from 'src/components/common/VnSection.vue';
|
||||||
import FetchData from 'src/components/FetchData.vue';
|
import FetchData from 'src/components/FetchData.vue';
|
||||||
|
import VnInputPassword from 'src/components/common/VnInputPassword.vue';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const { viewSummary } = useSummaryDialog();
|
const { viewSummary } = useSummaryDialog();
|
||||||
|
@ -168,10 +169,9 @@ function exprBuilder(param, value) {
|
||||||
>
|
>
|
||||||
<template #more-create-dialog="{ data }">
|
<template #more-create-dialog="{ data }">
|
||||||
<QCardSection>
|
<QCardSection>
|
||||||
<VnInput
|
<VnInputPassword
|
||||||
:label="t('Password')"
|
:label="t('Password')"
|
||||||
v-model="data.password"
|
v-model="data.password"
|
||||||
type="password"
|
|
||||||
:required="true"
|
:required="true"
|
||||||
autocomplete="new-password"
|
autocomplete="new-password"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -9,6 +9,8 @@ import { useArrayData } from 'src/composables/useArrayData';
|
||||||
import useNotify from 'src/composables/useNotify.js';
|
import useNotify from 'src/composables/useNotify.js';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
|
import VnInputPassword from 'src/components/common/VnInputPassword.vue';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const { notify } = useNotify();
|
const { notify } = useNotify();
|
||||||
const arrayData = useArrayData('AccountSamba');
|
const arrayData = useArrayData('AccountSamba');
|
||||||
|
@ -143,10 +145,9 @@ onMounted(async () => await getInitialSambaConfig());
|
||||||
v-model="data.adUser"
|
v-model="data.adUser"
|
||||||
:rules="validate('SambaConfigs.adUser')"
|
:rules="validate('SambaConfigs.adUser')"
|
||||||
/>
|
/>
|
||||||
<VnInput
|
<VnInputPassword
|
||||||
:label="t('samba.passwordAD')"
|
:label="t('samba.passwordAD')"
|
||||||
clearable
|
clearable
|
||||||
type="password"
|
|
||||||
v-model="data.adPassword"
|
v-model="data.adPassword"
|
||||||
/>
|
/>
|
||||||
<VnInput
|
<VnInput
|
||||||
|
|
|
@ -9,6 +9,7 @@ import { useArrayData } from 'src/composables/useArrayData';
|
||||||
import VnConfirm from 'src/components/ui/VnConfirm.vue';
|
import VnConfirm from 'src/components/ui/VnConfirm.vue';
|
||||||
import VnChangePassword from 'src/components/common/VnChangePassword.vue';
|
import VnChangePassword from 'src/components/common/VnChangePassword.vue';
|
||||||
import { useQuasar } from 'quasar';
|
import { useQuasar } from 'quasar';
|
||||||
|
import VnInputPassword from 'src/components/common/VnInputPassword.vue';
|
||||||
|
|
||||||
const $props = defineProps({
|
const $props = defineProps({
|
||||||
hasAccount: {
|
hasAccount: {
|
||||||
|
@ -97,14 +98,13 @@ async function sync() {
|
||||||
<QTooltip>{{ t('account.card.actions.sync.tooltip') }}</QTooltip>
|
<QTooltip>{{ t('account.card.actions.sync.tooltip') }}</QTooltip>
|
||||||
</QIcon></QCheckbox
|
</QIcon></QCheckbox
|
||||||
>
|
>
|
||||||
<QInput
|
<VnInputPassword
|
||||||
v-if="shouldSyncPassword"
|
v-if="shouldSyncPassword"
|
||||||
:label="t('login.password')"
|
:label="t('login.password')"
|
||||||
v-model="syncPassword"
|
v-model="syncPassword"
|
||||||
class="full-width"
|
class="full-width"
|
||||||
clearable
|
clearable
|
||||||
clear-icon="close"
|
clear-icon="close"
|
||||||
type="password"
|
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</VnConfirm>
|
</VnConfirm>
|
||||||
|
|
|
@ -7,6 +7,7 @@ import axios from 'axios';
|
||||||
|
|
||||||
import VnInput from 'components/common/VnInput.vue';
|
import VnInput from 'components/common/VnInput.vue';
|
||||||
import VnOutForm from 'components/ui/VnOutForm.vue';
|
import VnOutForm from 'components/ui/VnOutForm.vue';
|
||||||
|
import VnInputPassword from 'src/components/common/VnInputPassword.vue';
|
||||||
|
|
||||||
const quasar = useQuasar();
|
const quasar = useQuasar();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
@ -54,8 +55,7 @@ async function onSubmit() {
|
||||||
<template>
|
<template>
|
||||||
<VnOutForm @submit="onSubmit" :title="t('globals.pageTitles.resetPassword')">
|
<VnOutForm @submit="onSubmit" :title="t('globals.pageTitles.resetPassword')">
|
||||||
<template #default>
|
<template #default>
|
||||||
<VnInput
|
<VnInputPassword
|
||||||
type="password"
|
|
||||||
:label="t('login.password')"
|
:label="t('login.password')"
|
||||||
v-model="newPassword"
|
v-model="newPassword"
|
||||||
:info="
|
:info="
|
||||||
|
@ -72,9 +72,8 @@ async function onSubmit() {
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<QIcon name="password" />
|
<QIcon name="password" />
|
||||||
</template>
|
</template>
|
||||||
</VnInput>
|
</VnInputPassword>
|
||||||
<VnInput
|
<VnInputPassword
|
||||||
type="password"
|
|
||||||
:label="t('resetPassword.repeatPassword')"
|
:label="t('resetPassword.repeatPassword')"
|
||||||
v-model="repeatPassword"
|
v-model="repeatPassword"
|
||||||
required
|
required
|
||||||
|
@ -82,7 +81,7 @@ async function onSubmit() {
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<QIcon name="password" />
|
<QIcon name="password" />
|
||||||
</template>
|
</template>
|
||||||
</VnInput>
|
</VnInputPassword>
|
||||||
</template>
|
</template>
|
||||||
<template #buttons>
|
<template #buttons>
|
||||||
<QBtn
|
<QBtn
|
||||||
|
|
Loading…
Reference in New Issue