diff options
| -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 |
