Adds invisible_captcha to proposals, debates & sps

This commit is contained in:
kikito
2016-04-26 17:12:09 +02:00
parent 4b74a69680
commit 289182b145
7 changed files with 112 additions and 8 deletions

View File

@@ -8,7 +8,7 @@ class SpendingProposalsController < ApplicationController
feature_flag :spending_proposals
invisible_captcha only: [:create, :update], honeypot: :subtitle
invisible_captcha only: [:create, :update], honeypot: :subtitle, on_timestamp_spam: :redirect_timestamp_spam
respond_to :html, :js
@@ -72,4 +72,8 @@ class SpendingProposalsController < ApplicationController
target
end
def redirect_timestamp_spam
redirect_to root_path, notice: InvisibleCaptcha.timestamp_error_message
end
end