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");
|
||||
} else if (e.status === 403) {
|
||||
error.value = t("login.wrongCredentials");
|
||||
if (recaptcha) {
|
||||
window.grecaptcha.reset();
|
||||
}
|
||||
} else {
|
||||
$showError(e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue