mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-29 07:58:35 +00: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
|
error_exception = Exception.new
|
||||||
tokens.each do |tok|
|
tokens.each do |tok|
|
||||||
begin
|
begin
|
||||||
# TO-DO fix formatting of tokens when recieved from Captcha.generate_text
|
|
||||||
validate_request(tok, answer, env.request, HMAC_KEY, locale)
|
validate_request(tok, answer, env.request, HMAC_KEY, locale)
|
||||||
found_valid_captcha = true
|
found_valid_captcha = true
|
||||||
rescue ex
|
rescue ex
|
||||||
@ -115,7 +114,6 @@ module Invidious::Routes::API::V1::Authentication
|
|||||||
|
|
||||||
def self.api_login(env)
|
def self.api_login(env)
|
||||||
env.response.content_type = "application/json"
|
env.response.content_type = "application/json"
|
||||||
# locale = env.get("preferences").as(Preferences).locale
|
|
||||||
if !CONFIG.login_enabled
|
if !CONFIG.login_enabled
|
||||||
return error_json(400, "Login has been disabled by administrator")
|
return error_json(400, "Login has been disabled by administrator")
|
||||||
else
|
else
|
||||||
@ -184,5 +182,3 @@ struct CredentialsLogin
|
|||||||
property password : String
|
property password : String
|
||||||
property token : String
|
property token : String
|
||||||
end
|
end
|
||||||
|
|
||||||
text = "Ryan said, \"Hello!\""
|
|
||||||
|
Loading…
Reference in New Issue
Block a user