mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-31 12:42:09 +00:00 
			
		
		
		
	Fix check for 2-step verification
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Omar Roth
					Omar Roth