Sha256: 9f9e23eba20176e7e7dcb5c540dccd9088e8b981d92ecdd2c27cae637ea0b654
Contents?: true
Size: 339 Bytes
Versions: 3
Compression:
Stored size: 339 Bytes
Contents
module VisualCaptcha module ControllerHelpers def visual_captcha_valid? return true if Rails.env.test? if params["captcha-value"] challenge = session[:captcha] result = challenge.answer.encrypted == params["captcha-value"] return result else return false end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
visualcaptcha-0.0.1.5 | lib/visualcaptcha/controller.rb |
visualcaptcha-0.0.1.4 | lib/visualcaptcha/controller.rb |
visualcaptcha-0.0.1.3 | lib/visualcaptcha/controller.rb |