mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-28 07:28:31 +00:00
Update authentication.cr
This commit is contained in:
parent
a99b42e561
commit
46cb5dfa1c
@ -1,7 +1,11 @@
|
|||||||
module Invidious::Routes::API::V1::Authentication
|
module Invidious::Routes::API::V1::Authentication
|
||||||
def self.register(env)
|
def self.register(env)
|
||||||
env.response.content_type = "application/json"
|
env.response.content_type = "application/json"
|
||||||
body_json : String = env.request.body.gets_to_end
|
body_io = env.request.body
|
||||||
|
body_json = "{}"
|
||||||
|
if body_io
|
||||||
|
body_json = env.request.body!.gets_to_end
|
||||||
|
end
|
||||||
if CONFIG.registration_enabled
|
if CONFIG.registration_enabled
|
||||||
creds = nil
|
creds = nil
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user