Jump to:

10850 Posts in 2517 Topics by 1793 members

All other Modules

SilverStripe Forums » All other Modules » reCAPTCHA and Subsites

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 235 Views
  • Stephen
    Avatar
    Community Member
    4 Posts

    reCAPTCHA and Subsites Link to this post

    We have multiple domains hosted using subsites, I'm enabling recaptcha (with spamprotection and userforms).

    I have registered my domain names with Google recpatcha and received my dozen Public/Private keys, the problem is that the standard config for recaptcha only allows for one key.

    The quick fix for now is to change the key to Global but I'd prefer not to use it this way long term.

    Ideal answer would probably be to add fields to subsites for the recaptcha keys and have the recaptcha module pull them from there, that way the keys are maintainable through the cms.

    My other thought involving less module customisation is to assign RecaptchaField::$public_api_key and RecaptchaField::$private_api_key based on the current subsite.

    Has anyone run into and solved this issue already?

    Thanks, Stephen.

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: reCAPTCHA and Subsites Link to this post

    Any reason why a global key isn't an option? I normally select global so we simply have 1 set of keys to manage on each development, test and production server rather than swapping those out all the time.

    235 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.