From 726b1818d095b81ba3d4d262c37e355cd7048d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Mon, 8 May 2023 18:48:12 +0200 Subject: [PATCH 1/2] fix error message for password reset request --- src/Controller/LoginController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/LoginController.php b/src/Controller/LoginController.php index 05d61fd..3558fca 100644 --- a/src/Controller/LoginController.php +++ b/src/Controller/LoginController.php @@ -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.' ] ]); } -- 2.45.2 From d1dee271911e74d4cc3a25524252f661f68a5098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Mon, 8 May 2023 18:48:43 +0200 Subject: [PATCH 2/2] reset grecaptcha in case of error --- public/static/js/rvr.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/static/js/rvr.js b/public/static/js/rvr.js index 7a1a5c8..0b6dea3 100644 --- a/public/static/js/rvr.js +++ b/public/static/js/rvr.js @@ -64,6 +64,9 @@ var RVR = { formError.style.display = 'block'; formError.innerHTML = this.response.error.errorText; + if (typeof grecaptcha !== 'undefined') { + grecaptcha.reset(); + } return; } -- 2.45.2