Update authentication.cr

This commit is contained in:
Ryan G 2023-06-13 01:24:33 -07:00
parent 843c17ee50
commit 2e7336647a

View File

@ -1,7 +1,7 @@
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 || "{}" body_json : String = env.request.body
if CONFIG.registration_enabled if CONFIG.registration_enabled
creds = nil creds = nil
begin begin