diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-07-18 19:30:52 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-07-18 21:52:24 -0500 |
| commit | d97a272aa5735126fa3d704173fd28ece0e7a25b (patch) | |
| tree | fb875303df883ca7514aad065715ea990b95525c | |
| parent | 1b74a04efd06e8fe7488ecf8fa2cbfecab4e71c8 (diff) | |
| download | invidious-d97a272aa5735126fa3d704173fd28ece0e7a25b.tar.gz invidious-d97a272aa5735126fa3d704173fd28ece0e7a25b.tar.bz2 invidious-d97a272aa5735126fa3d704173fd28ece0e7a25b.zip | |
Fix check for 2-step verification
| -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 80fc92b8..ee83657a 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -989,7 +989,7 @@ post "/login" do |env| next templated "error" 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/>" # Prefer Authenticator app and SMS over unsupported protocols |
