diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-09-22 09:54:54 -0400 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-09-22 09:54:54 -0400 |
| commit | 1085ca4a2df7565f559512cddc2203d1fbad041e (patch) | |
| tree | 0a726fb5424e847cea1a4853dd5118163c8e7c59 /src | |
| parent | 9766322e99b772cea70099034b12fcb90fbc60d6 (diff) | |
| download | invidious-1085ca4a2df7565f559512cddc2203d1fbad041e.tar.gz invidious-1085ca4a2df7565f559512cddc2203d1fbad041e.tar.bz2 invidious-1085ca4a2df7565f559512cddc2203d1fbad041e.zip | |
Fix typo in Google login
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 4016d07c..b97aa6b2 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -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" |
