mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Fix check for 2-step verification
This commit is contained in:
parent
1b74a04efd
commit
d97a272aa5
1 changed files with 1 additions and 1 deletions
|
@ -989,7 +989,7 @@ post "/login" do |env|
|
||||||
next templated "error"
|
next templated "error"
|
||||||
end
|
end
|
||||||
|
|
||||||
if challenge_results[0][-1]?.try &.[0]?.try &.as_a?
|
if challenge_results[0][-1]?.try &.[0].as_a?.try &.[0][2]?.try &.== "TWO_STEP_VERIFICATION"
|
||||||
traceback << "User has 2FA.<br/>"
|
traceback << "User has 2FA.<br/>"
|
||||||
|
|
||||||
# Prefer Authenticator app and SMS over unsupported protocols
|
# Prefer Authenticator app and SMS over unsupported protocols
|
||||||
|
|
Loading…
Reference in a new issue