bugfix/fixes-for-password-reset #53

Merged
bence merged 2 commits from bugfix/fixes-for-password-reset into master 2023-05-26 16:08:51 +02:00
2 changed files with 4 additions and 1 deletions

View File

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

View File

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