Adds invisible_captcha to proposals, debates & sps
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user