update: reset captcha after new message
This commit is contained in:
@@ -6,8 +6,8 @@ const emit = defineEmits(['login-submit']);
|
||||
|
||||
const username = ref('');
|
||||
const password = ref('');
|
||||
const captchaResponse = ref(null);
|
||||
|
||||
const captchaResponse = ref(null);
|
||||
const captchaVerified = computed(() => {
|
||||
return captchaResponse.value !== null;
|
||||
});
|
||||
@@ -62,6 +62,7 @@ const submit = () => {
|
||||
}
|
||||
|
||||
emit('login-submit', { username: username.value, password: password.value, captchaResponse: captchaResponse.value });
|
||||
captcha.value.reset();
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user