[Git][noosfero/noosfero][master] 2 commits: use tokens for recaptcha service registered on noosfero config file

Rodrigo Souto gitlab at mg.gitlab.com
Fri Jun 8 11:51:52 BRT 2018


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
6dadeac9 by Joenio Costa at 2018-05-08T18:27:51Z
use tokens for recaptcha service registered on noosfero config file

   config/noosfero.yml:
   development:
     api_recaptcha_site_key: (put your token here)
     api_recaptcha_private_key: (put your token here)

the initializer file `config/initializers/recaptcha.rb` is going to use
NOOSFERO_CONF to get keys values:

* NOOSFERO_CONF['api_recaptcha_private_key']
* NOOSFERO_CONF['api_recaptcha_site_key']

- - - - -
30407a50 by Rodrigo Souto at 2018-06-08T14:51:37Z
Merge branch 'joenio/noosfero-recaptcha-noosfero-conf'

- - - - -


1 changed file:

- config/initializers/recaptcha.rb


Changes:

=====================================
config/initializers/recaptcha.rb
=====================================
--- a/config/initializers/recaptcha.rb
+++ b/config/initializers/recaptcha.rb
@@ -1,4 +1,4 @@
 Recaptcha.configure do |config|
-  config.site_key   = '6LcK7CYUAAAAABl-eMkoFIv3VvOOIPwiXeinFmUi'
-  config.secret_key = '6LcK7CYUAAAAAN-oooxubQRkDEf_EKqygh4Hs3CB'
+  config.site_key   = NOOSFERO_CONF['api_recaptcha_site_key'] || '6LcK7CYUAAAAABl-eMkoFIv3VvOOIPwiXeinFmUi'
+  config.secret_key = NOOSFERO_CONF['api_recaptcha_private_key'] || '6LcK7CYUAAAAAN-oooxubQRkDEf_EKqygh4Hs3CB'
 end



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/100b534312516775811d7ef0bd19c9b6c0dc1cba...30407a501e5499efa64dce659f84f85c939a2d77

-- 
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/100b534312516775811d7ef0bd19c9b6c0dc1cba...30407a501e5499efa64dce659f84f85c939a2d77
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20180608/097ee1f4/attachment.html>


More information about the Noosfero-dev mailing list