summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2019-02-05 08:49:24 -0600
committerOmar Roth <omarroth@hotmail.com>2019-02-05 08:49:24 -0600
commit699f85e773c7e69ac081c2361be3de89541accf5 (patch)
treecc89db72cbb696083b334578c048f0a632832bf7 /src
parentf225d38680b4013c9c6d4f27247160996a694146 (diff)
downloadinvidious-699f85e773c7e69ac081c2361be3de89541accf5.tar.gz
invidious-699f85e773c7e69ac081c2361be3de89541accf5.tar.bz2
invidious-699f85e773c7e69ac081c2361be3de89541accf5.zip
Fix Google login0.14.0
Diffstat (limited to 'src')
-rw-r--r--src/invidious.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 81318acf..b85baa19 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -814,7 +814,7 @@ post "/login" do |env|
if challenge_results[0][-1][0].as_a?
# Prefer Authenticator app and SMS over unsupported protocols
- if challenge_results[0][-1][0][0][8] != 6 || challenge_results[0][-1][0][0][8] != 9
+ if challenge_results[0][-1][0][0][8] != 6 && challenge_results[0][-1][0][0][8] != 9
tfa = challenge_results[0][-1][0].as_a.select { |auth_type| auth_type[8] == 6 || auth_type[8] == 9 }[0]
select_challenge = "[#{challenge_results[0][-1][0].as_a.index(tfa).not_nil!}]"