Google's recaptcha removed. Avoid external dependencies.
This commit is contained in:
parent
e90f8fc53e
commit
72ccc986a4
4 changed files with 7 additions and 8 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue