From df9dd1aa6c9a44febd2848740ada6acca7cf2c42 Mon Sep 17 00:00:00 2001 From: Henry Date: Fri, 21 Apr 2023 09:40:25 -0400 Subject: [PATCH 1/2] disable submit until captcha passes client side check --- app/javascript/login/create_account.vue | 27 ++++++++++++------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/app/javascript/login/create_account.vue b/app/javascript/login/create_account.vue index b70fdea68..884d02f4a 100644 --- a/app/javascript/login/create_account.vue +++ b/app/javascript/login/create_account.vue @@ -21,7 +21,7 @@ >
From 39d1b806c7032557ab9d89c336a39ea78c7280c0 Mon Sep 17 00:00:00 2001 From: Henry Date: Fri, 21 Apr 2023 10:23:59 -0400 Subject: [PATCH 2/2] handle captcha expired as an error as well --- app/javascript/login/create_account.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/login/create_account.vue b/app/javascript/login/create_account.vue index 884d02f4a..3a0da4f5e 100644 --- a/app/javascript/login/create_account.vue +++ b/app/javascript/login/create_account.vue @@ -25,6 +25,7 @@ :sitekey="captchaKey" :loadRecaptchaScript="true" @verify="onVerifyCaptcha" + @expired="onCaptchaError" @error="onCaptchaError" >