From 843c17ee50504065b2ea754805e5bfa47c7e5b5d Mon Sep 17 00:00:00 2001 From: Ryan G <78384369+SpongeManiac@users.noreply.github.com> Date: Tue, 13 Jun 2023 01:11:58 -0700 Subject: [PATCH] Update authentication.cr --- src/invidious/routes/api/v1/authentication.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/invidious/routes/api/v1/authentication.cr b/src/invidious/routes/api/v1/authentication.cr index 347bcbcb..4919dab9 100644 --- a/src/invidious/routes/api/v1/authentication.cr +++ b/src/invidious/routes/api/v1/authentication.cr @@ -1,7 +1,7 @@ module Invidious::Routes::API::V1::Authentication def self.register(env) env.response.content_type = "application/json" - body_json = env.request.body || "{}" + body_json : String = env.request.body || "{}" if CONFIG.registration_enabled creds = nil begin @@ -38,6 +38,7 @@ module Invidious::Routes::API::V1::Authentication # send captcha if enabled if CONFIG.captcha_enabled # captcha_response = nil + put body_json captcha_response = CaptchaResponse.from_json(body_json) # begin # rescue ex