Releases: WordPress/two-factor
Releases · WordPress/two-factor
Version 0.7.3
Includes the following changes 0.7.2...79c3641
- Make
wp_login_failedaction call compatible with the WP core argument count and types. Reported in #471 by @dziudek and fixed in #478 by @dd32. - Use
hash_equals()for nonce comparison to improve security. Reported in #458 and fixed in #458 by @calvinalkan. - Improve compatibility with PHP 8.1 by replacing all instances of
FILTER_SANITIZE_STRINGusage. Reported and fixed in #428 by @sjinks. - Add automated checks for PHP 8 compatibility in #465 and #466 by @kasparsd.
- Improve accessibility of two-factor settings in the user profile by introducing a label that links the method names with the associated checkboxes. Reported and fixed in #387 by @r-a-y.
- Improve TOTP autocomplete behaviour by setting the
autocompleteattribute toone-time-code. Reported and fixed in #420 by @squaredpx.
Version 0.7.2 (Security Improvement)
- Security improvement: Store the second factor authentication step nonce hashed to prevent leaking it via database read access #453. Props to @calvinalkan for reporting the issue.
- Fix: Add
wp_specialchars_decode()to escape the HTML entity on the Email Subject line (#412), props @nbwpuk. - Fix: Use
hash_equals()when comparing the email token (#425), props @Mati02K. - Tooling: Introduce
@wordpress/envfor development tooling and move to GitHub actions for CI (#436).
Version 0.7.1
Version 0.7.0
- Fix: improve time-based one-time (TOTP) autofill when using password managers like 1Password, see #373. Props @omelhus.
- Fix: allow spaces in email code input and strip them away before processing, see #379. Props @shay1383.
- Fix: remove references to Google Authenticator app since there are a lot more TOTP authenticators these days, see #367. Props @r-a-y.
- Fix: register FIDO U2F related scripts during the suggested action hooks to avoid PHP noticed, see #356 and #368. Props @cojennin.
- Rename and deprecate action and filter names
two-factor-user-options-andtwo-factor-totp-time-step-allowancethat don't following the WP coding standards. Usetwo_factor_user_options_andtwo_factor_totp_time_step_allowancenow. See #363. Props @paulschreiber. - Update codebase to match the WordPress coding standards, see #340. Props @paulschreiber.
- Add tooling to run PHPUnit tests locally during development, see #355. Props @kasparsd.
Version 0.7.0-rc.1
- Update codebase to match the WordPress coding standards, see #340. Props @paulschreiber.
- Add tooling to run PHPUnit tests locally during development, see #355. Props @kasparsd.
Version 0.6.0
-
Security fix: escape the U2F key value when doing the key lookup in database during login. Props @mjangda from WordPress VIP. See #351.
-
New feature: invalidate email tokens 15 minutes after they were generated. Use the
two_factor_token_ttlfilter to override this time-to-live interval. See #352. -
Document some of the available filters.
Version 0.5.2
- Bugfix: saving standard user profile fields no longer resets the time-based-password key, see #341.
- Bugfix: remove spaces around authentication codes before verifying them, see #339 (props @paulschreiber).
- Bugfix: allow admins to configure FIDO U2F keys for other users, see #349.
- Enable the "Dummy" authenticator method only when
WP_DEBUGis set since we don't want regular users using it. - New: Add an
two_factor_user_authenticatedaction when the user is logged-in after the second factor has been verified, see #324 (props @Kubitomakita). - New: Add
two_factor_token_email_subjectandtwo_factor_token_email_messagefilters to customize the email code subject and body, see #345 (props @christianc1). - Update the reference article URL in the readme files to account for domain change, see #332 (props @todeveni).
Version 0.5.1
Version 0.5.0
Version 0.4.8
- Mark as tested with WordPress 5.3.
- Add a screenshot with email code authentication prompt.
- Update development tooling versions.

