From b5c9f8a17e40c5f877e4f618a7c5630c944f038b Mon Sep 17 00:00:00 2001 From: Ryan G <78384369+SpongeManiac@users.noreply.github.com> Date: Thu, 15 Jun 2023 18:09:42 -0700 Subject: [PATCH] Removed Comments & Debug --- src/invidious/routes/api/v1/authentication.cr | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/invidious/routes/api/v1/authentication.cr b/src/invidious/routes/api/v1/authentication.cr index c956af80..4b39087b 100644 --- a/src/invidious/routes/api/v1/authentication.cr +++ b/src/invidious/routes/api/v1/authentication.cr @@ -60,7 +60,6 @@ module Invidious::Routes::API::V1::Authentication error_exception = Exception.new tokens.each do |tok| begin - # TO-DO fix formatting of tokens when recieved from Captcha.generate_text validate_request(tok, answer, env.request, HMAC_KEY, locale) found_valid_captcha = true rescue ex @@ -115,7 +114,6 @@ module Invidious::Routes::API::V1::Authentication def self.api_login(env) env.response.content_type = "application/json" - # locale = env.get("preferences").as(Preferences).locale if !CONFIG.login_enabled return error_json(400, "Login has been disabled by administrator") else @@ -184,5 +182,3 @@ struct CredentialsLogin property password : String property token : String end - -text = "Ryan said, \"Hello!\""