Update authentication.cr

This commit is contained in:
Ryan G 2023-06-13 00:32:07 -07:00
parent 40ca8898d4
commit 0aace0d888

View File

@ -38,10 +38,11 @@ module Invidious::Routes::API::V1::Authentication
# send captcha if enabled
if CONFIG.captcha_enabled
captcha_response = nil
begin
captcha_response = CaptchaResponse.from_json(body_json)
rescue
end
captcha_response = CaptchaResponse.from_json(body_json)
# begin
# rescue ex
# end
if captcha_response
answer = captcha_response.answer
tokens = captcha_response.tokens