Reject supporter codes if they're already used by another email

This commit is contained in:
Matt Barringer 2013-02-06 07:23:35 +01:00
parent 152e8a345d
commit d6bda2f6dc
4 changed files with 47 additions and 5 deletions

View file

@ -14,6 +14,5 @@ class Admin::SupportersController < ApplicationController
supporter = SupporterRegistration.create!(params[:supporter_registration])
flash[:notice] = "Supporter added"
render :json => {"status" => "ok"}
end
end