Adds invisible_captcha to proposals, debates & sps
This commit is contained in:
@@ -11,7 +11,7 @@ class DebatesController < ApplicationController
|
||||
|
||||
feature_flag :debates
|
||||
|
||||
invisible_captcha only: [:create, :update], honeypot: :subtitle
|
||||
invisible_captcha only: [:create, :update], honeypot: :subtitle, on_timestamp_spam: :redirect_timestamp_spam
|
||||
|
||||
has_orders %w{hot_score confidence_score created_at relevance}, only: :index
|
||||
has_orders %w{most_voted newest oldest}, only: :show
|
||||
@@ -54,4 +54,8 @@ class DebatesController < ApplicationController
|
||||
Debate
|
||||
end
|
||||
|
||||
def redirect_timestamp_spam
|
||||
redirect_to root_path, notice: InvisibleCaptcha.timestamp_error_message
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user