cirandas.net

ref: master

app/helpers/captcha_helper.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
module CaptchaHelper

  HiddenField = 'hcaptcha'

  def captcha_verify recaptcha_options = {}
    return true if params[HiddenField].blank?
    return true if verify_recaptcha recaptcha_options
    false
  end

end