mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Fix typo in Google login
This commit is contained in:
parent
9766322e99
commit
1085ca4a2d
1 changed files with 1 additions and 1 deletions
|
@ -1059,7 +1059,7 @@ post "/login" do |env|
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO: Handle Google's CAPTCHA
|
# TODO: Handle Google's CAPTCHA
|
||||||
if captcha = challenge_results[0][-1]?.try &.[-1]?.try &.["5001"]?.try &.[-1].as_a?
|
if captcha = challenge_results[0][-1]?.try &.[-1]?.try &.as_h?.try &.["5001"]?.try &.[-1].as_a?
|
||||||
error_message = "Unhandled CAPTCHA. Please try again later."
|
error_message = "Unhandled CAPTCHA. Please try again later."
|
||||||
env.response.status_code = 401
|
env.response.status_code = 401
|
||||||
next templated "error"
|
next templated "error"
|
||||||
|
|
Loading…
Reference in a new issue