Closed (fixed)
Project:
Simple Google reCAPTCHA
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
6 Jul 2019 at 15:58 UTC
Updated:
6 Sep 2019 at 16:09 UTC
Jump to comment: Most recent
Extend webform handler to support reCAPTCHA v3, updated hadler should allow to:
- Select reCAPTCHA type per webform ( v2 checkbox / v3 invisible )
- select desired reCAPTCHA v3 score limit
- allow to set error message, which will be shown to visitors, when reCAPTCHA token verification fails
- add action name to recaptcha verification requests ( most likely webform name )
Comments
Comment #3
sandboxplThis is now possible, webform handler allows to choose two types of reCAPTCHA:
- v2 (checkbox)
- v3 (invisible)
Additional settings for v3 protections are:
- desired reCAPTCHA score - this allows to choose score between 0 and 100 , any reCAPTCHA validation score lower than configured value will be recognized as spam and block form submission
- Custom error message - This error message will be shown when reCAPTCHA validation will fail.
New release with notes and documentation updates will be provided soon
Comment #5
sandboxplComment #6
sandboxplComment #8
renguer0 commentedHi. I can't add recaptcha handler on handler webform's page. The others handlers works but recaptcha didn't show anything.
There is a know issue?
Comment #9
sandboxplHey @renguer0 ,
I'm not aware of any issues with missing webform handlers,
everything should be available after enabling simple_recaptcha_webform submodule,
if you have module enabled and you can't find handlers in webform settings please provide YAML export of your webform,
so I can check what's going on
Comment #10
renguer0 commentedHello @sandboxpl ! Thanks for your answer.
I see recaptcha webform handler in webform settings (of course I have the three modules enabled too) but when I click in add, nothing happens.
Maybe I can enable debugging or something else for see what's going wrong? I'm in lastest stable version of Drupal and dev version of modules.
Comment #11
sandboxplIt sounds like some error is being thrown during AJAX submission of webform settings,
please check your browser's console, you will probably see some errors there,
you can also turn on dblog module and check /admin/reports/dblog page, you should find some useful debug information there.
I'm trying to reproduce the issue with core 8.7.7 locally, but I can't see anything so far,
can you navigate to /admin/structure/webform/manage/YOUR_WEBFORM_ID/source and provide YAML source generated on that page ?
Comment #12
renguer0 commentedOf course! I disabled Advagg and see this error message when tried to enable the handler:
This is the yaml source:
Comment #13
sandboxpl@renguer0 that's a really nice catch !
Logger service should be injected by interface to avoid conflicts like this, I've pushed a fix for that:
https://git.drupalcode.org/project/simple_recaptcha/commit/53630688529d5...
Please update to recent dev version , the error should be gone now
Comment #14
renguer0 commentedThanks for your reply @sandboxpl. I updated the module and checked the modifications were applied on the file via FTP. Now I see this error when I try to add the handler:
Hope it can be fix soon. ReCaptcha is really a must.