summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2023-06-10 17:48:10 +0200
committerSamantaz Fox <coding@samantaz.fr>2023-06-11 16:34:59 +0200
commitd3b04ac68c7d85dae0e1e15611666d7c055e2c12 (patch)
treede35eeb748984b889c51ffbffc882f206f79987e /src
parentb2b61ab0a9039f256a3f36cd81af316a514b4ba3 (diff)
downloadinvidious-d3b04ac68c7d85dae0e1e15611666d7c055e2c12.tar.gz
invidious-d3b04ac68c7d85dae0e1e15611666d7c055e2c12.tar.bz2
invidious-d3b04ac68c7d85dae0e1e15611666d7c055e2c12.zip
User: Remove broken Google login (dedicated captcha route)
Diffstat (limited to 'src')
-rw-r--r--src/invidious/routes/login.cr7
-rw-r--r--src/invidious/routing.cr1
2 files changed, 0 insertions, 8 deletions
diff --git a/src/invidious/routes/login.cr b/src/invidious/routes/login.cr
index ca1e0d49..d0f7ac22 100644
--- a/src/invidious/routes/login.cr
+++ b/src/invidious/routes/login.cr
@@ -211,11 +211,4 @@ module Invidious::Routes::Login
env.redirect referer
end
-
- def self.captcha(env)
- headers = HTTP::Headers{":authority" => "accounts.google.com"}
- response = YT_POOL.client &.get(env.request.resource, headers)
- env.response.headers["Content-Type"] = response.headers["Content-Type"]
- response.body
- end
end
diff --git a/src/invidious/routing.cr b/src/invidious/routing.cr
index 72ee9194..daaf4d88 100644
--- a/src/invidious/routing.cr
+++ b/src/invidious/routing.cr
@@ -57,7 +57,6 @@ module Invidious::Routing
get "/login", Routes::Login, :login_page
post "/login", Routes::Login, :login
post "/signout", Routes::Login, :signout
- get "/Captcha", Routes::Login, :captcha
# User preferences
get "/preferences", Routes::PreferencesRoute, :show