SciLifeLab-TrainingHub-Platform / TeSS

Training e-Support Service using Ruby on Rails.
Other
0 stars 1 forks source link

Captcha addition in the sign up page #197

Closed harshita3199 closed 3 weeks ago

harshita3199 commented 1 month ago
adeel-ahmad-awan commented 1 month ago

Configuring Google reCAPTCHA in secrets.yml

Our code already supports Google reCAPTCHA, so all that’s needed is to add the reCAPTCHA keys to secrets.yml.

Steps to Add Google reCAPTCHA Keys

  1. Generate reCAPTCHA Keys: To generate the keys, visit the Google reCAPTCHA site and follow these steps:

    • Click on Go to reCAPTCHA Admin Console.
    • On the next page:
      • Enter a label (e.g., your site name).
      • Select reCAPTCHA v2 and Challenge: Verify requests with a challenge.
      • Choose the "I'm not a robot" Checkbox option.
      • Add domains for all environments (e.g., localhost, dev, pre-production, production).
      • Include Google Cloud Platform if necessary.
  2. Copy the Keys:

    • After configuration, copy the site key and secret key and paste them into secrets.yml under the recaptcha section.

Refer to the screenshot for additional guidance on completing these steps.

image.png image.png image.png
adeel-ahmad-awan commented 1 month ago
image.png
harshita3199 commented 1 month ago

I have done the setup of reCAPTCHA in the signup page. Created the documentation on confluence