User: Remove broken Google login (dedicated captcha route)

This commit is contained in:
Samantaz Fox 2023-06-10 17:48:10 +02:00
parent b2b61ab0a9
commit d3b04ac68c
No known key found for this signature in database
GPG Key ID: F42821059186176E
2 changed files with 0 additions and 8 deletions

View File

@ -211,11 +211,4 @@ module Invidious::Routes::Login
env.redirect referer env.redirect referer
end 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 end

View File

@ -57,7 +57,6 @@ module Invidious::Routing
get "/login", Routes::Login, :login_page get "/login", Routes::Login, :login_page
post "/login", Routes::Login, :login post "/login", Routes::Login, :login
post "/signout", Routes::Login, :signout post "/signout", Routes::Login, :signout
get "/Captcha", Routes::Login, :captcha
# User preferences # User preferences
get "/preferences", Routes::PreferencesRoute, :show get "/preferences", Routes::PreferencesRoute, :show