diff options
Diffstat (limited to 'doc/development/spam_protection_and_captcha')
-rw-r--r-- | doc/development/spam_protection_and_captcha/exploratory_testing.md | 1 | ||||
-rw-r--r-- | doc/development/spam_protection_and_captcha/model_and_services.md | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/doc/development/spam_protection_and_captcha/exploratory_testing.md b/doc/development/spam_protection_and_captcha/exploratory_testing.md index b2d780b1563..f2812cd6de9 100644 --- a/doc/development/spam_protection_and_captcha/exploratory_testing.md +++ b/doc/development/spam_protection_and_captcha/exploratory_testing.md @@ -32,6 +32,7 @@ Enable any relevant feature flag, if the spam/CAPTCHA support is behind a featur 1. For **Site key**, use: `6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI` 1. For **Secret key**, use: `6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe` 1. Go to **Admin -> Settings -> Reporting** settings: `http://gdk.test:3000/admin/application_settings/reporting#js-spam-settings` + 1. Expand the **Spam and Anti-bot Protection** section. 1. Select **Enable reCAPTCHA**. Enabling for login is not required unless you are testing that feature. 1. Enter the **Site key** and **Secret key**. 1. To set up Akismet: diff --git a/doc/development/spam_protection_and_captcha/model_and_services.md b/doc/development/spam_protection_and_captcha/model_and_services.md index 9c5d389a2f5..2c7ec8c3f50 100644 --- a/doc/development/spam_protection_and_captcha/model_and_services.md +++ b/doc/development/spam_protection_and_captcha/model_and_services.md @@ -35,9 +35,9 @@ To do this: designate which fields to consider the "`title`" or "`description`". For example, this line designates the `content` field as the `description`: - ```ruby - attr_spammable :content, spam_description: true - ``` + ```ruby + attr_spammable :content, spam_description: true + ``` 1. Add a `#check_for_spam?` method implementation: |