Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Updating Recaptcha

  1. Get a site and server key: https://www.google.com/recaptcha/admin
  2. Download the Google Recaptcha library: https://github.com/google/recaptcha/archive/1.1.3.zip
  3. Copy the contents of src/ directory into core/lib/recaptcha (so delete everything in that folder, and replace it). It should look like this:
core/lib/recaptcha/
    ReCaptcha
    autoload.php
  1. Make the changes shown in these two links:

    https://github.com/nabeelio/phpvms_v2/pull/138/commits/b8d46bbf25195de9d454cb0ca9ed9175631d752a https://github.com/nabeelio/phpvms_v2/commit/88656de961463b46ce742c77455c67c5c06fdfac

    Red being lines to remove, and green being what to replace them with.

  2. Add to the bottom of your local.config.php file, and read the instructions in the comments, putting the keys in the right places

# Add to the end of local.config.php
# You need to get the keys from here: https://www.google.com/recaptcha/admin
# Put the "Site Key" in RECAPTCHA_PUBLIC_KEY
# Put the "Secret Key" in RECAPTCHA_PRIVATE_KEY
Config::Set('RECAPTCHA_PUBLIC_KEY', '');
Config::Set('RECAPTCHA_PRIVATE_KEY', '');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.