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

View file

@ -9,5 +9,4 @@
the screenshot should get removed:
= form_tag(report_screenshot_path(screenshot.id))
= text_area_tag 'delete_reason', nil, class: 'input-group-field', maxlength: 100, rows: 3, cols: 50
= recaptcha_tags
= submit_tag 'Request removal', class: 'button alert'