uses simple_captcha instead of recaptcha [#51]

This commit is contained in:
rgarcia
2015-08-10 20:24:56 +02:00
parent ee463f2ab1
commit 4839081ad2
29 changed files with 144 additions and 100 deletions

View File

@@ -1,9 +1,8 @@
require "application_responder"
class ApplicationController < ActionController::Base
check_authorization unless: :devise_controller?
include SimpleCaptcha::ControllerHelpers
self.responder = ApplicationResponder
respond_to :html
@@ -38,9 +37,4 @@ class ApplicationController < ActionController::Base
end
end
def verify_captcha?(resource)
return true unless recaptcha_keys?
verify_recaptcha(model: resource)
end
end