Update authentication.cr

This commit is contained in:
Ryan G 2023-06-12 21:35:35 -07:00
parent 5cbdffd4cd
commit 550140627d

View File

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