cdwertmann / recaptcha

Redmine 2.x plugin that adds a recaptcha to the account registration page
11 stars 13 forks source link

fix "No private key" error #5

Closed dgeo closed 7 years ago

dgeo commented 7 years ago

upgrading to recaptcha v2 / compatible with recaptcha 4.0.0 gem

Without this I ended up with a blank error page like this one: ("No site key", or "no private key", depending on gem recaptcha version)

ActionView::Template::Error (No site key specified.):
    26:   <p><%= custom_field_tag_with_label :user, value %></p>
    27: <% end %>
    28: 
    29: <%= recaptcha_tags :hl=>current_language, :public_key => Setting.plugin_recaptcha['recaptcha_public_key'] %>
    30: </div>
    31: 
    32: <%= submit_tag l(:button_submit) %>
  app/helpers/application_helper.rb:1056:in `labelled_form_for'

(no ruby skills here, but it may need a version in Gemfile ?)