mirror of
https://github.com/iv-org/invidious.git
synced 2025-04-20 15:45:46 -04:00
Removed Comments & Debug
This commit is contained in:
parent
4afd573a72
commit
b5c9f8a17e
@ -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!\""
|
||||
|
Loading…
x
Reference in New Issue
Block a user