Compare commits

..

2 Commits

Author SHA1 Message Date
d1dee27191
reset grecaptcha in case of error
All checks were successful
rvr-nextgen/pipeline/pr-master This commit looks good
2023-05-08 18:48:43 +02:00
726b1818d0
fix error message for password reset request 2023-05-08 18:48:12 +02:00
2 changed files with 4 additions and 1 deletions

View File

@ -64,6 +64,9 @@ var RVR = {
formError.style.display = 'block';
formError.innerHTML = this.response.error.errorText;
if (typeof grecaptcha !== 'undefined') {
grecaptcha.reset();
}
return;
}

View File

@ -196,7 +196,7 @@ class LoginController
if ($user === null) {
return new JsonContent([
'error' => [
'errorText' => 'No user found with the given email address / username.'
'errorText' => 'No user found with the given email address.'
]
]);
}