diff --git a/src/components/ui/ChangePasswordForm.vue b/src/components/ui/ChangePasswordForm.vue index eff04318..9f546ded 100644 --- a/src/components/ui/ChangePasswordForm.vue +++ b/src/components/ui/ChangePasswordForm.vue @@ -16,6 +16,9 @@ const props = defineProps({ }); const emit = defineEmits(['onPasswordChanged']); +const showOldPwd = ref(false); +const showNewPwd = ref(false); +const showCopyPwd = ref(false); const { t } = useI18n(); const api = inject('api'); @@ -107,20 +110,40 @@ onMounted(async () => { v-if="!verificationToken" ref="oldPasswordRef" v-model="formData.oldPassword" + :type="!showOldPwd ? 'password' : 'text'" :label="t('oldPassword')" - type="password" - /> + > + + + > + >