Clear password error on change in setup account

This commit is contained in:
Johannes Zellner
2025-08-07 14:09:09 +02:00
parent fbf12dc764
commit 1b7a06aaf1
+5 -1
View File
@@ -1,6 +1,6 @@
<script setup>
import { ref, onMounted, useTemplateRef } from 'vue';
import { ref, onMounted, useTemplateRef, watch } from 'vue';
import { marked } from 'marked';
import { Button, PasswordInput, FormGroup, TextInput } from '@cloudron/pankow';
import PublicPageLayout from '../components/PublicPageLayout.vue';
@@ -32,6 +32,10 @@ const MODE = {
DONE: 'done',
};
watch(password, () => {
formError.value.password = null;
});
async function onSubmit() {
if (!form.value.reportValidity()) return;