From 720517b20d95873d75379821918d2edc3ed107a5 Mon Sep 17 00:00:00 2001 From: Daniel Lun Date: Mon, 25 Nov 2024 15:43:02 -0800 Subject: [PATCH] Add reCAPTCHA reset for login with wrong credentials --- frontend/src/views/Login.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/views/Login.vue b/frontend/src/views/Login.vue index 5804789a..ac482b4a 100644 --- a/frontend/src/views/Login.vue +++ b/frontend/src/views/Login.vue @@ -107,6 +107,9 @@ const submit = async (event: Event) => { error.value = t("login.usernameTaken"); } else if (e.status === 403) { error.value = t("login.wrongCredentials"); + if (recaptcha) { + window.grecaptcha.reset(); + } } else { $showError(e); }