From 206001266042e8be3a3095be7c129db9701a5be2 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 19 Sep 2025 14:16:05 +0800 Subject: [PATCH] feat: reset captcha field on login form submission failure --- ui/src/views/chat/user-login/index.vue | 1 + ui/src/views/login/index.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/ui/src/views/chat/user-login/index.vue b/ui/src/views/chat/user-login/index.vue index af11308f3..c783e8e70 100644 --- a/ui/src/views/chat/user-login/index.vue +++ b/ui/src/views/chat/user-login/index.vue @@ -269,6 +269,7 @@ const loginHandle = () => { loading.value = false loginForm.value.username = '' loginForm.value.password = '' + loginForm.value.captcha = '' const timestampKey = `${username}_chat_first_fail_timestamp` if (!localStorage.getItem(timestampKey)) { localStorage.setItem(timestampKey, Date.now().toString()) diff --git a/ui/src/views/login/index.vue b/ui/src/views/login/index.vue index 9888e195c..14420b63e 100644 --- a/ui/src/views/login/index.vue +++ b/ui/src/views/login/index.vue @@ -217,6 +217,7 @@ const loginHandle = () => { loading.value = false loginForm.value.username = '' loginForm.value.password = '' + loginForm.value.captcha = '' const timestampKey = `${username}_first_fail_timestamp` if (!localStorage.getItem(timestampKey)) { localStorage.setItem(timestampKey, Date.now().toString())