This commit is contained in:
Javier Casares 2026-06-05 16:40:56 +00:00
commit 17078a91bd

View file

@ -4,7 +4,7 @@ Tags: security, two-factor authentication, login, otp
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
Stable tag: 1.2.0
Stable tag: 1.2.1
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
@ -59,51 +59,51 @@ Yes. Activate the plugin at the network level. Network administrators can set an
== Changelog ==
= 1.2.1 =
_Release date: 2026-06-05_
**Fixed**
* Recovery code confirmation without checking the method checkbox now correctly activates the method and enables 2FA.
* Fatal error on admin profile pages in multisite — `maybe_handle_frontend_save()` now returns early when `is_admin()` is true.
* OTP and recovery confirmation text inputs were disabled by JS when the Enable toggle was off, preventing values from reaching the server.
* "Regenerate codes" now removes recovery codes from active methods and requires re-confirmation before reactivating.
* Entering a valid OTP code or recovery confirmation code activates the method even without checking the Enable checkbox.
**Security**
* `RECOVERY_REGENERATE_FIELD` POST value now validated with strict `=== '1'` check.
= 1.1.0 =
_Release date: 2026-06-05_
* Added `[robotstxt_2fa_profile]` shortcode for frontend 2FA management without wp-admin.
* Added developer action/filter hooks: `robotstxt_2fa_skip_challenge`, `robotstxt_2fa_verification_success`, `robotstxt_2fa_verification_failed`, `robotstxt_2fa_code_length`, `robotstxt_2fa_code_ttl`, and more.
* Added "Regenerate codes" button on the profile when recovery codes are active.
* Added top-up mode for recovery codes: generates only the missing codes to refill the batch.
**Added**
* `[robotstxt_2fa_profile]` shortcode for frontend 2FA management without wp-admin.
* Developer action/filter hooks: `robotstxt_2fa_skip_challenge`, `robotstxt_2fa_verification_success`, `robotstxt_2fa_verification_failed`, `robotstxt_2fa_code_length`, `robotstxt_2fa_code_ttl`, and more.
* "Regenerate codes" button on the profile when recovery codes are active.
* Top-up mode for recovery codes: generates only the missing codes to refill the batch.
= 1.0.0 =
_Release date: 2026-06-05_
* Fixed: Enable 2FA checkbox now defaults to email method on first activation.
* Fixed: QR code now renders correctly (data URI was stripped by esc_url).
* Fixed: Resend link shows a 60-second live countdown to prevent email flooding.
* Changed: Recovery codes section redesigned — plain list, no green notice box.
* Changed: 2FA login links now a vertical list instead of inline bullets.
* Removed: Redundant "Generate new secret" button from OTP section.
**Fixed**
= 0.3.0 =
* Enable 2FA checkbox now defaults to email method on first activation.
* QR code now renders correctly (data URI was stripped by esc_url).
* Resend link shows a 60-second live countdown to prevent email flooding.
_Release date: 2026-06-05_
**Changed**
* Added delete-on-uninstall option (data preserved by default per AGENTS.md).
* Security: email verification codes now use `random_int()` (CSPRNG) instead of `wp_rand()`.
* Security: recovery code preview transient now expires after 5 minutes.
* Fixed network admin settings page form submission.
* Fixed settings option set to `autoload=false` (not needed on every page load).
* Recovery codes section redesigned — plain list, no green notice box.
* 2FA login links now a vertical list instead of inline bullets.
= 0.2.0 =
**Removed**
_Release date: 2026-06-05_
* Added per-role 2FA method matrix in admin settings with select-all row and column controls.
* Added authenticator app (TOTP) support with QR provisioning and manual setup key.
* Added recovery codes: 10 single-use 8-digit codes with confirmation workflow.
* Added configurable verification frequency remembered per device.
* Added network-wide multisite support.
* Changed profile method checkboxes to require explicit confirmation before activation.
* Fixed recovery-code preview persistence and QR generation error handling.
= 0.1.0 =
Initial release.
* Redundant "Generate new secret" button from OTP section.
= Previous versions =