mirror of
https://github.com/iv-org/invidious.git
synced 2025-10-15 23:00:49 -04:00
Update authentication.cr
This commit is contained in:
parent
b2c0adbcdd
commit
d7a1fc6d44
1 changed files with 1 additions and 5 deletions
|
@ -36,11 +36,7 @@ module Invidious::Routes::API::V1::Authentication
|
||||||
password = password.byte_slice(0, 55)
|
password = password.byte_slice(0, 55)
|
||||||
# send captcha if enabled
|
# send captcha if enabled
|
||||||
if CONFIG.captcha_enabled
|
if CONFIG.captcha_enabled
|
||||||
captcha_response = nil
|
captcha_response = CaptchaResponse.from_json(env.request.body || "{}")
|
||||||
begin
|
|
||||||
captcha_response = CaptchaResponse.from_json(env.request.body || "{}")
|
|
||||||
rescue
|
|
||||||
end
|
|
||||||
if captcha_response
|
if captcha_response
|
||||||
answer = captcha_response.answer
|
answer = captcha_response.answer
|
||||||
tokens = captcha_response.tokens
|
tokens = captcha_response.tokens
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue