GRN2-125: Added a configurable reCAPTCHA on sign up (#502)

* Added a configurable reCAPTCHA on sign up

* Added missing code
This commit is contained in:
farhatahmad
2019-05-07 09:21:04 -04:00
committed by Jesus Federico
parent f6dd3d34eb
commit 75f48f4979
8 changed files with 39 additions and 3 deletions

View File

@ -108,5 +108,8 @@ module Greenlight
# Number of rows to display per page
config.pagination_rows = ENV['NUMBER_OF_ROWS'].to_i.zero? ? 10 : ENV['NUMBER_OF_ROWS'].to_i
# Whether the user has defined the variables required for recaptcha
config.recaptcha_enabled = ENV['RECAPTCHA_SITE_KEY'].present? && ENV['RECAPTCHA_SECRET_KEY'].present?
end
end

View File

@ -210,6 +210,10 @@ en:
google: Google
microsoft_office365: Office 365
twitter: Twitter
recaptcha:
errors:
recaptcha_unreachable: Oops, we failed to validate your reCAPTCHA response. Please try again.
verification_failed: reCAPTCHA verification failed, please try again.
recording:
all_recordings: All Recordings
email: Email Recording