From bb7836d2d873a4716a13d960709c61500a9940a2 Mon Sep 17 00:00:00 2001 From: Lily Yan <lily.yan@uwaterloo.ca> Date: Fri, 24 Jul 2020 10:12:53 -0400 Subject: [PATCH] ISTWCMS-2953 Add hcaptcha as default challenge type --- config/install/captcha.settings.yml | 3 ++- config/install/hcaptcha.settings.yml | 7 +++++++ uw_cfg_common.info.yml | 3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 config/install/hcaptcha.settings.yml diff --git a/config/install/captcha.settings.yml b/config/install/captcha.settings.yml index 7cf53ede..ce3ccb5c 100644 --- a/config/install/captcha.settings.yml +++ b/config/install/captcha.settings.yml @@ -1,4 +1,4 @@ -default_challenge: recaptcha/reCAPTCHA +default_challenge: hcaptcha/hCaptcha description: 'This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.' administration_mode: false allow_on_admin_pages: false @@ -7,3 +7,4 @@ default_validation: 1 persistence: 1 enable_stats: false log_wrong_responses: false +enabled_default: 0 diff --git a/config/install/hcaptcha.settings.yml b/config/install/hcaptcha.settings.yml new file mode 100644 index 00000000..e4907f1f --- /dev/null +++ b/config/install/hcaptcha.settings.yml @@ -0,0 +1,7 @@ +site_key: '6LfYahsUAAAAAOzd6l2BWgBrY4hLzJRluCzFLmy0' +secret_key: '6LfYahsUAAAAANjnMFEhuWqzuBjrTLm4lPdVSveH' +hcaptcha_src: 'https://hcaptcha.com/1/api.js' +widget: + theme: '' + size: '' + tabindex: 0 diff --git a/uw_cfg_common.info.yml b/uw_cfg_common.info.yml index 1bb18bb9..4ca467ce 100644 --- a/uw_cfg_common.info.yml +++ b/uw_cfg_common.info.yml @@ -6,10 +6,11 @@ dependencies: - captcha - core_event_dispatcher - field_event_dispatcher + - hcaptcha - hook_event_dispatcher - layout_builder_modal - layout_builder_restrictions - layout_builder_styles - - recaptcha - preprocess_event_dispatcher + - recaptcha - user -- GitLab