mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-28 15:38:30 +00:00
Update authentication.cr
This commit is contained in:
parent
b168e5f78d
commit
dcb3634ca0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user