Google's recaptcha removed. Avoid external dependencies.

This commit is contained in:
Christoph Haas 2017-04-05 16:26:23 +02:00
parent e90f8fc53e
commit 72ccc986a4
4 changed files with 7 additions and 8 deletions

View file

@ -182,7 +182,7 @@ class PackagesController < ApplicationController
# Receive an anonymous report from a user to have a screenshot removed.
def report_screenshot
@screenshot = Screenshot.find(params[:id])
if verify_recaptcha
# if verify_recaptcha
@screenshot.delete_reason = params[:delete_reason]
@screenshot.markedfordelete = true
if @screenshot.valid?
@ -192,7 +192,7 @@ class PackagesController < ApplicationController
errors = @screenshot.errors.to_a.join(' and ')
flash['alert'] = "Sorry. #{errors}"
end
end
# end
redirect_to :back
end