mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-30 01:36:21 -05:00
Fix challenge switching for Google login
This commit is contained in:
parent
27934dad37
commit
8bbf351d04
@ -818,7 +818,7 @@ post "/login" do |env|
|
||||
# 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
|
||||
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!}]"
|
||||
select_challenge = "[2,null,null,null,[#{tfa[8]}]]"
|
||||
|
||||
tl = challenge_results[1][2]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user