Skip to content
  • About WordPress
    • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register
WordPress.org
WordPress.org

Te Reo Māori

  • Themes
  • Plugins
  • News
  • About
  • Help us Translate
  • Contact
  • Get WordPress
Get WordPress

Plugins

  • My Favorites
  • Beta Testing
  • Developers
Download

Two-Factor

By Plugin Contributors
  • Details
  • Reviews
  • Support
  • Development

Description

Use the “Two-Factor Options” section under “Users” → “Your Profile” to enable and configure one or multiple two-factor authentication providers for your account:

  • Email codes
  • Time Based One-Time Passwords (TOTP)
  • FIDO Universal 2nd Factor (U2F)
  • Backup Codes
  • Dummy Method (only for testing purposes)

For more history, see this post.

Actions & Filters

Here is a list of action and filter hooks provided by the plugin:

  • two_factor_providers filter overrides the available two-factor providers such as email and time-based one-time passwords. Array values are PHP classnames of the two-factor providers.
  • two_factor_enabled_providers_for_user filter overrides the list of two-factor providers enabled for a user. First argument is an array of enabled provider classnames as values, the second argument is the user ID.
  • two_factor_user_authenticated action which receives the logged in WP_User object as the first argument for determining the logged in user right after the authentication workflow.
  • two_factor_token_ttl filter overrides the time interval in seconds that an email token is considered after generation. Accepts the time in seconds as the first argument and the ID of the WP_User object being authenticated.

Get Involved

Development happens on GitHub. Join the #core-passwords channel on WordPress Slack (sign up here).

Here is how to get started:

$ git clone https://github.com/wordpress/two-factor.git
$ npm install

Then open a pull request with the suggested changes.

Screenshots

  • Two-factor options under User Profile.
  • U2F Security Keys section under User Profile.
  • Email Code Authentication during WordPress Login.

Reviews

Website has a technical problem

Mirko (alias Dinosaurier) July 22, 2022
Ein Fehler vom Typ E_ERROR wurde in der Zeile 103 der Datei /www/htdocs/w010aebd/wp-content/plugins/advanced-classifieds-and-directory-pro/public/class-acadp-public-registration.php verursacht. Fehlermeldung: Ungefangener ArgumentCountError: Zu wenige Argumente für Funktion ACADP_Public_Registration::wp_login_failed(), 1 übergeben in /www/htdocs/w010aebd/wp-includes/class-wp-hook.php auf Zeile 307 und genau 2 erwartet in /www/htdocs/w010aebd/wp-content/plugins/advanced-classifieds-and-directory-pro/public/class-acadp-public-registration.php:103 Stack-Trace: #0 /www/htdocs/w010aebd/wp-includes/class-wp-hook.php(307): ACADP_Public_Registration->wp_login_failed('mirko') #1 /www/htdocs/w010aebd/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #2 /www/htdocs/w010aebd/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #3 /www/htdocs/w010aebd/wp-content/plugins/two-factor/class-two-factor-core.php(838): do_action('wp_login_failed', 'mirko') #4 /www/htdocs/w010aebd/wp-includes/class-wp-hook.php(307): Two_Factor_Core::login_form_validate_2fa('') #5 /www/htdocs/w010aebd/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #6 /www/htdocs/w010aebd/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #7 /www/htdocs/w010aebd/wp-login.php(518): do_action('login_form_vali...') #8 {main}

Wow nice plugin

arafatamin July 18, 2022
Wow nice plugin

Very Efficient

vy name June 10, 2022
I surely want to acknowledge my gratitude to this plugin's authors. Their work is to be measured by the effect it has on protecting WP sites and how effortlessly it works. Fricton-free and effective. Just great!

It doesn’t work

carnalpl May 1, 2022
U2F key cannot be added.

Unfortunately broken despite so much promise

clpjas March 8, 2022
I really hate giving this one-star but the plugin is out of date and broken. This plugin was suggested to me back when I was looking for 2FA methods. It looked promising and worked great, but features are broken, it's fallen behind in supporting the latest versions of WordPress, and has not been updated in half a year. It's a real shame because I've not found a 2FA plugin that can match this plugin...

Good Plugin, But need some improvements

WPSpeedo March 7, 2022
The plugin is good, it works fine with the membership plugin.
Read all 152 reviews

Contributors & Developers

“Two-Factor” is open source software. The following people have contributed to this plugin.

Contributors
  • George Stephanis
  • Derek Herman
  • Steven Word
  • Daisuke Takahashi
  • Scott Grant
  • Aaron D. Campbell
  • John Blackbourn
  • Steve Grunwell
  • Stephen Edgar
  • Kaspars
  • Ali Husnain
  • Arslan Kalwar

“Two-Factor” has been translated into 31 locales. Thank you to the translators for their contributions.

Translate “Two-Factor” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

See the release history.

Meta

  • Version: 0.7.1
  • Last updated: 5 months ago
  • Active installations: 40,000+
  • WordPress Version: 4.3 or higher
  • Tested up to: 5.9.3
  • PHP Version: 5.6 or higher
  • Languages:

    Albanian, Arabic, Catalan, Chinese (China), Chinese (Hong Kong), Chinese (Taiwan), Czech, Danish, Dutch, Dutch (Belgium), English (Canada), English (UK), English (US), Finnish, French (Canada), French (France), Galician, German, Italian, Japanese, Norwegian (Bokmål), Persian, Polish, Russian, Spanish (Colombia), Spanish (Ecuador), Spanish (Mexico), Spanish (Spain), Spanish (Venezuela), Swedish, Urdu, and Vietnamese.

    Translate into your language

  • Tags:
    authenticationlogintotptwo factortwo step
  • Advanced View

Ratings

See all
  • 5 stars 134
  • 4 stars 10
  • 3 stars 0
  • 2 stars 2
  • 1 star 7
Log in to submit a review.

Contributors

  • George Stephanis
  • Derek Herman
  • Steven Word
  • Daisuke Takahashi
  • Scott Grant
  • Aaron D. Campbell
  • John Blackbourn
  • Steve Grunwell
  • Stephen Edgar
  • Kaspars
  • Ali Husnain
  • Arslan Kalwar

Support

Issues resolved in last two months:

0 out of 8

View support forum

  • About
  • News
  • Hosting
  • Donate
  • Support
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org

Te Reo Māori

  • Visit our Facebook page
  • Visit our Twitter account
Code is Poetry.