Add reCAPTCHA reset for login with wrong credentials
parent
2fdea73430
commit
720517b20d
|
@ -107,6 +107,9 @@ const submit = async (event: Event) => {
|
||||||
error.value = t("login.usernameTaken");
|
error.value = t("login.usernameTaken");
|
||||||
} else if (e.status === 403) {
|
} else if (e.status === 403) {
|
||||||
error.value = t("login.wrongCredentials");
|
error.value = t("login.wrongCredentials");
|
||||||
|
if (recaptcha) {
|
||||||
|
window.grecaptcha.reset();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$showError(e);
|
$showError(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue