Closed Bouchemel-Nasreddine closed 11 months ago
Recaptch configuation were migrated to rails credentials, now you need to do rails credentials:edit
and set
recaptcha:
site_key:
secret_key:
thanks @syphax-bouazzouni for your reply, for these two keys, are the ones found in config/master.yml and config/secrets.yml or are they defined somewhere else?
Hello,
it not related to config/master.yml
or config/secrets.yml
.
what you need to do is:
cd
to /srv/ontoportal/bioportal_web_ui/current
RAILS_ENV=applaince EDITO='nano' bin/rails credentilals:edit
, it will open an editor (linux nano
in this case) , if it shows an error do this bundle config unset without && bundle config unset deployment && bundle install
and try again recaptcha:
site_key: <your site_key>
secret_key: <your_secret_key>
sudo oprestart
Some details can be found also here https://github.com/ontoportal-lirmm/bioportal_web_ui/issues/96
Tell me if it worked for you, and it will be great if you can create for us a documentation page for future people asking this. Do a PR here https://github.com/ontoportal/documentation/ so it can be displayed here https://ontoportal.github.io/documentation/developer
thanks @syphax-bouazzouni , no problem I will document this, but before that, well it did solve the initializing problem. However, the recaptcha in the website is saying the keys are invalid, "ERREUR pour le propriétaire du site: Type de clé non valid", I can see it was reported before in this issue ontoportal-lirmm/bioportal_web_ui/issues/95, but since the link to the fix is private I could not access it, if possible can you share the solution for it? thanks in advance
hey, apparently it didn't work when choosing v3 type (verification with score) of recpatcha at creation, now it works with type v2 (verification with challenge), thanks for your help @syphax-bouazzouni
Hey, I activated the recaptcha in IndustryPortal
ENV['USE_RECAPTCHA'] ||= 'true'
ENV['RECAPTCHA_PUBLIC_KEY'] ||= 'pub_key'
ENV['RECAPTCHA_PRIVATE_KEY'] ||= 'pri_key'
i'm having this error in the ui:the error happens at this line of code github , and seeing it I think I have to define site and secret key in config/credentials.yml.enc, is it right? if yes how to do that please?
Thanks