Skip to content

Commit

Permalink
Fix typo in Google login
Browse files Browse the repository at this point in the history
  • Loading branch information
omarroth committed Sep 22, 2019
1 parent 9766322 commit 1085ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/invidious.cr
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ post "/login" do |env|
end

# 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."
env.response.status_code = 401
next templated "error"
Expand Down

0 comments on commit 1085ca4

Please sign in to comment.