studiomitte / friendlycaptcha-typo3

Integration of friendly captcha
Other
4 stars 8 forks source link

[FEATURE] Implements method to resolve siteKey and siteSecretKey variants based on conditions evaluated using Expression Language. #14

Open kryslin opened 4 months ago

kryslin commented 4 months ago

Example of yaml configuration:

friendlycaptcha_secret_key: 'friendlycaptcha_secret_key'
friendlycaptcha_secret_key_variants:
  -
    value: 'friendlycaptcha_secret_key_variant_for_development'
    condition: 'applicationContext == "Development"'

friendlycaptcha_site_key: 'friendlycaptcha_site_key'
friendlycaptcha_site_key_variants:
  -
    value: 'friendlycaptcha_site_key_for_development'
    condition: 'applicationContext == "Development"'