mirror of
https://github.com/iv-org/invidious.git
synced 2025-06-07 22:42:40 -04:00
Update authentication.cr
This commit is contained in:
parent
5cbdffd4cd
commit
550140627d
1 changed files with 7 additions and 1 deletions
|
@ -55,7 +55,13 @@ module Invidious::Routes::API::V1::Authentication
|
||||||
# send captcha
|
# send captcha
|
||||||
captcha = Invidious::User::Captcha.generate_text(HMAC_KEY)
|
captcha = Invidious::User::Captcha.generate_text(HMAC_KEY)
|
||||||
# puts captcha
|
# 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
|
||||||
end
|
end
|
||||||
# create user
|
# create user
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue