Update authentication.cr

This commit is contained in:
Ryan G 2023-06-12 23:12:32 -07:00
parent d376e1f6b5
commit 17731b9a23

View File

@ -111,7 +111,7 @@ module Invidious::Routes::API::V1::Authentication
answer = Digest::MD5.hexdigest(answer.downcase.strip)
if tokens.empty?
return error_template(500, "Erroneous CAPTCHA")
return error_json(500, "Erroneous CAPTCHA")
end
found_valid_captcha = false