Two Factor Authentication source code

By David Anderson / Team Updraft, on WordPress.org since 2015. 20,000+ active installs.

Browse code Download zip

Secure WordPress login with this two factor authentication (TFA / 2FA) plugin. Users for whom it is enabled will require a one-time code in order to log in. Below is its source code for every one of its 98 releases, what changed in the latest one, and how often it ships.

What changed in 1.17.0

Released Nov 18, 2026, 3 months after 1.16.0
  • SECURITY: Do not allow WooCommerce to auto-login a user who has TFA active when they perform a password reset. i.e. On previous versions, if using WooCommerce’s “Lost password” facility, someone with access to the email account to which the password reset link was sent could login without providing a TFA code.
  • SECURITY: On a site where users with lower privilege levels (e.g. subscriber) existed, a lower-privileged user could forge a request and thereby have his own TFA code accepted for someone else’s account. To complete login he would also need to know the password of the account he was logging into. Thanks to Karol Czubernat for the responsible disclosure, via WPScan.
  • FIX: Error log entry for Beginning attempt to port private key encryption over to openssl when unnecessary.
  • FIX: Fixed warning “username” in notify_incorrect_tfa_code_attempts()
  • FIX: If TFA is compulsory for user roles (Premium), it remains required even after downgrading to the free version.
  • FIX: Resolve a PHP E_STRICT deprecation notice

10 files changed since 1.16.0: 10 modified, 0 added, 0 removed.

Compare 1.16.0 with 1.17.0

Release history

98 releases since March 2015
  1. 1.17.0 Nov 18, 2026 SECURITY: Do not allow WooCommerce to auto-login a user who has TFA active when they perform a password reset. i.e. On previous versions, if using WooCommerce’s “Lost password” facility, someone with access to the email account to which the password reset link was sent could login without providing a TFA code.
  2. 1.16.0 Aug 13, 2026 FEATURE: Add support for Easy Digital Downloads(EDD) login form
  3. 1.15.5 Nov 12, 2025 FIX: Function WP_Block_Type_Registry::register was called incorrectly
  4. 1.14.27 Apr 10, 2025 FIX: 1.14.26 broke saving settings on a front-end page via the shortcode
  5. 1.14.26 Nov 13, 2024 TWEAK: Resolve a language deprecation notice on WP 6.7 and non-default language
Full Two Factor Authentication changelog with diffs

Source of 1.17.0

48 files
Browse all Two Factor Authentication 1.17.0 files Browse trunk