How To Force Two-Step Authentication In Jetpack SSO

Last week I shared how to enable two-step authentication in your WordPress using Jetpack’s Single Sign On module. However, there is one problem in Jetpack’s SSO module. Even after you enable two-step authentication, a visitor can easily sign-in with the login form, and he won’t have to complete two-step authentication process.

Here’s way which will force two-step authentication in Jetpack SSO module by directly redirecting all our users to connect login form.

Just drop the following snippet to your current theme’s functions.php file:

Thanks to Ben Lobaugh for the help!