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

WordPress.org

  • Showcase
  • Learn
  • Themes
  • Plugins
  • Mobile
  • Support
    • Documentation
    • Forums
  • Get Involved
    • Five for the Future
  • About
  • Blog
  • Hosting
  • 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

Works like a charm

taurit September 19, 2021
I set up second factor using U2F FIDO Key & Authy for my accounts. Works like a charm. Quick setup and no problems encountered 🙂

Simple and almost perfect, bug with WP All In One Security

mdsa82 September 7, 2021
When I activate the option to Force user exit after a while in the WP All In One Security plugin it breaks the Two Factor plugin, otherwise the plugin is simple and effective.

Awesome

nizaruddin987 August 31, 2021
Excellent plugin, works like charm. Worth having for every website.

Потрясающий

claudia August 19, 2021
Потрясающий. Теперь, только если ваш плагин будет совместим с Woocommerce, он будет еще больше

Great Plugin. Great solution. Highly Recommend.

Neil Batchelor August 12, 2021
We needed a way to verify that a user was allowed to login on behalf of a company, however we had no way to verify that they were still an employee. We used this plugin with only "Email Authentication" turned on and forced use by all users. This meant that if an employee we restricted access to their business email they would lose access to the system. Great solution. We would highly recommend this plugin.

Could not make it working

agnoletti July 24, 2021
I tried several free and not-free plugins to get a 2-factor authentication, but this too did not work at all. So far, I got something only from "miniorange-2-factor-authentication". Sometimes, while testing different plugins of this kind, I even ended locked out my website with no chance to log in again. Luckly I was doing all testing on a staging website and I do recommend doing the same with these dangerous plugins (they either do not work at all - as this one - or lock you out). For the paid version of this type of plugin, I also do recommend a full try-before-buy testing, otherwise do forget about them.
Read all 139 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 H. Arshad
  • Arslan Kalwar

“Two-Factor” has been translated into 27 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: 1 month ago
  • Active installations: 30,000+
  • WordPress Version: 4.3 or higher
  • Tested up to: 5.8.1
  • PHP Version: 5.6 or higher
  • Languages:

    Albanian, Arabic, Chinese (China), Chinese (Hong Kong), Chinese (Taiwan), Czech, Danish, Dutch, Dutch (Belgium), English (Canada), English (UK), English (US), Finnish, French (France), Galician, German, Italian, Japanese, Norwegian (Bokmål), Persian, Polish, Russian, 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 125
  • 4 stars 9
  • 3 stars 0
  • 2 stars 2
  • 1 star 3
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 H. Arshad
  • Arslan Kalwar

Support

Issues resolved in last two months:

2 out of 7

View support forum

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

Code is Poetry.