Starts using invisible_captcha in the source code. Pending: tests, proper invisible_captcha gem in Gemfile

This commit is contained in:
kikito
2016-04-25 14:45:59 +02:00
parent 54a3cc40b7
commit eedf02a186
12 changed files with 65 additions and 4 deletions

View File

@@ -10,6 +10,8 @@ class ProposalsController < ApplicationController
before_action :load_geozones, only: [:edit, :map, :summary]
before_action :authenticate_user!, except: [:index, :show, :map, :summary]
invisible_captcha only: [:create, :update], honeypot: :subtitle
has_orders %w{hot_score confidence_score created_at relevance}, only: :index
has_orders %w{most_voted newest oldest}, only: :show