From 353c3041ac590b9015c30c903fd95f15bdafb559 Mon Sep 17 00:00:00 2001 From: Gagan Deep Singh Date: Thu, 18 Apr 2024 21:26:43 +0530 Subject: [PATCH] Update messaging in reCaptcha demo --- src/scenarios/google-recaptcha/index.ejs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/scenarios/google-recaptcha/index.ejs b/src/scenarios/google-recaptcha/index.ejs index 5ccbf83..30688e1 100644 --- a/src/scenarios/google-recaptcha/index.ejs +++ b/src/scenarios/google-recaptcha/index.ejs @@ -1,13 +1,13 @@ <%- include(commonPath + '/header.ejs') %> <%- include(commonPath + '/internal-page/header.ejs', {containerType: 'sm'}) %> -
+
-
<%- include(commonPath + '/internal-page/footer.ejs') %> @@ -30,14 +30,14 @@ const errorCallback = (error) => { console.log('error'); if (error) { - statusMessage.textContent = `captcha error`; + statusMessage.textContent = `reCaptcha error!`; } }; - + captchaForm.onsubmit = (event) => { event.preventDefault(); const token = grecaptcha.getResponse(); - statusMessage.textContent = `form submitted, captcha token ${token}`; + statusMessage.textContent = `Form submitted successfully!`; } window.onloadCallback = function() {