Update authentication.cr

This commit is contained in:
Ryan G 2023-06-13 00:42:32 -07:00
parent b168e5f78d
commit dcb3634ca0

View File

@ -69,13 +69,13 @@ module Invidious::Routes::API::V1::Authentication
# send captcha # send captcha
captcha = Invidious::User::Captcha.generate_text(HMAC_KEY, ":register") captcha = Invidious::User::Captcha.generate_text(HMAC_KEY, ":register")
# puts captcha # puts captcha
response = JSON.build do |json| captcha_request = JSON.build do |json|
json.object do json.object do
json.field "question", captcha["question"] json.field "question", captcha["question"]
json.field "tokens", captcha["tokens"] json.field "tokens", captcha["tokens"]
end end
end end
return response return captcha_request
end end
end end
# create user # create user