Security plugin that adds per-role two-factor authentication to the WordPress login flow.
Information
Author:
ROBOTSTXTDownload
Price:
€0.00Requirements
Version:
1.6.11WordPress:
7.0–
7.2PHP >=
8.3Changelog
1.6.11
Release date: 2026-11-04
Fixed
- The 2FA verification screen is no longer hijacked on membership sites that redirect the WordPress login away from wp-login.php (confirmed live on Restrict Content Pro 4.0.9 with “Hijack Login URL” enabled and the login at a custom account page such as /mi-cuenta/). RCP implements the hijack twice: through the login_url filter (already handled since 1.6.4) and — new finding — through a
login_form_loginredirect that bounces every default-action wp-login.php request to the membership page, dropping the 2FA query arguments. Stage requests now carry a dedicatedaction=robotstxt-2fa-verify(declared to WordPress via a registeredlogin_form_hook, preserved on submission through a hidden field), so they run core’s login branch without firinglogin_form_login, out of reach of that redirect pattern in any plugin. Verified end to end on the reported replica: password at the membership page → verification screen renders → valid code → user lands back on the membership page, logged in. - Users logging in from front-end forms (membership/account pages) now return to the page they logged in from after completing 2FA instead of landing in wp-admin: when the request carries no core
redirect_to, the challenge falls back to the raw HTTP referer, validated to be same-host and not an admin or login URL (foreign and admin referers are ignored).
Compatibility
- WordPress: 7.0 – 7.2
- PHP: 8.3 – 8.6
Tests
- PHP Coding Standards: PHP_CodeSniffer 3.13.6 / WPCS 3.4.1 — 0 errors
- PHPStan: level max (10), no baseline — 0 errors
- PHPCompatibility: 8.3-8.6 — 0 issues
- PHPUnit: 9.6.38 — 125 tests, 236 assertions (PHP 8.6.0RC3 and 8.3.36)
- Live end-to-end on the reported site replica (WordPress 7.1.4 + Restrict Content Pro 4.0.9): full login → 2FA → return-to-page cycle, MariaDB 11.8.9
1.6.10
Release date: 2026-11-03
Fixed
- The 2FA verification stage now stays on the login URL the visitor actually used. When wp-login.php executes through an alias or renamed slug (a
/loginrewrite, a “hidden login” setup that does not filtersite_url), the post-password redirect previously always targeted the literal/wp-login.php— on sites where that URL is blocked or renamed away at server level, users were stranded on a 403/404 page right after a correct password. The stage base URL now preserves the executing login surface (path only; host and scheme still come from the site’s canonical URL; traversal sequences rejected), while logins submitted from custom pages callingwp_signon()keep landing on the real wp-login.php as before (the 1.6.4 Restrict Content Pro guarantee). Full root-cause analysis indocs/report-login-surface-urls.md.
Compatibility
- WordPress: 7.0 – 7.2
- PHP: 8.3 – 8.6
Tests
- PHP Coding Standards: PHP_CodeSniffer 3.13.6 / WPCS 3.4.1 — 0 errors
- PHPStan: level max (10), no baseline — 0 errors
- PHPCompatibility: 8.3-8.6 — 0 issues
- PHPUnit: 9.6.38 — 119 tests, 229 assertions (PHP 8.6.0RC3 and 8.3.36)
- Live surface probes: WordPress 7.2-beta4 (single site) and WordPress 7.0 (multisite) on PHP 8.6.0RC3, MariaDB 11.8.9
1.6.9
Release date: 2026-11-03
Changed
- Compatibility floors raised: minimum WordPress moved from 5.6 to 7.0 and minimum PHP from 8.0 to 8.3, matching the support policy (latest stable WordPress plus the two previous majors). The full-range compatibility review (WordPress 4.7-7.2 walked down with wp-compat; PHP 5.6-8.6 scanned with PHPCompatibility) confirmed the plugin uses no WordPress symbols newer than 6.0 and no PHP syntax newer than 8.0, so the real code floors are lower — the declared floors are the supported ones. WordPress 7.2 (beta 4, single-site) and WordPress 7.0 (multisite) were live-tested; PHP 8.6 (RC 3) was live-tested and PHP 8.3-8.6 scanned clean.
- The admin menu icon is now a brand SVG (shield with keyhole, base64 data URI) instead of
dashicons-shield, on both single-site and network admin menus. WordPress core natively renders base64 SVG menu icons (centered at 20px), so the icon works identically on WordPress 7.0, 7.1 and 7.2, stays crisp on high-density screens, and is future-proof against the admin-wide move from Dashicons to SVG icons tracked in WordPress core (PR #12270 / Trac ticket #65089). Dashicons continue to work everywhere else. - Composer tooling updated: wp-compat 3.0.1, PHPStan 2.3.5, wordpress-stubs 7.1.2, PHPUnit 9.6.38, maxmind-db/reader 1.14.0;
composer auditreports no known vulnerabilities.
Fixed
- PHP 8.6 deprecation removed: the REST controller declared a class constant named
namespace(case-insensitively), which PHP 8.6 deprecates and PHP 9 will reject as a fatal error. Renamed toREST_NAMESPACEwith no functional change (the constant was private). - Static-analysis hardening to pass PHPStan at the new maximum level (10) without a baseline:
$wpdb,$wp_filterand$postglobals are now properly typed; the uninstall routine deletes user meta through the$wpdb->delete()WordPress API instead of hand-built SQL; role names fromget_editable_roles()are validated before translation;AUTH_SALTandCOOKIEPATHare validated as strings before use in the trusted-device cookie; the trusted-device map discards corrupted non-string keys;get_users()results are instance-checked before use; a misplaced translators comment on an_n()call was fixed (WPCS error).
Compatibility
- WordPress: 7.0 – 7.2
- PHP: 8.3 – 8.6
Tests
- PHP Coding Standards: PHP_CodeSniffer 3.13.6 / WPCS 3.4.1 — 0 errors, 1 accepted advisory warning (urlencode mirrors WordPress core’s wp_login_url())
- PHPStan: 2.3.5 level max (10), no baseline — 0 errors
- PHPCompatibility: 9.3.5, testVersion 8.3-8.6 — 0 issues
- PHPUnit: 9.6.38 — 110 tests, 220 assertions (PHP 8.6.0RC3 and PHP 8.3.36)
- Live smoke tests: WordPress 7.2-beta4 (single site) and WordPress 7.0 (multisite) on PHP 8.6.0RC3, MariaDB 11.8.9
1.6.8
Release date: 2026-09-21
Added
- Administrator visibility when email delivery fails: failed verification-code deliveries record a marker and administrators see a persistent, self-clearing notice (“2FA: email delivery is failing…”) in wp-admin and the network admin, since forced-email users cannot sign in while delivery is broken. The notice disappears automatically once a code is delivered successfully.
Fixed
- “We could not determine which account you are trying to access” during verification: the pending-stage token was stored in a transient, which external object caches (Redis/Memcached) can evict at any time, killing live verification sessions. Tokens now live in a persistent option map (capped, pruned, consumed on success, cleaned on uninstall) and the error message now says the session expired and asks the user to sign in again.
Compatibility
- WordPress: 5.6 – 7.1
- PHP: 8.0 – 8.5
Tests
- PHP Coding Standards: PHP_CodeSniffer 3.13.6 / WPCS 3.4.1 — 0 errors
- PHPStan: level 9 — 0 errors
- PHPCompatibility: 8.0–8.5 — 0 issues
- PHPUnit: 9.6.36 — 110 tests, 220 assertions
1.6.7
Release date: 2026-09-17
Fixed
- The forced-setup wizard felt like a broken redirect loop: the wizard redirect bounced users to the profile with no explanation (it now carries a flag that renders a clear “activate at least one verification method, then save” warning), and saving with an expired form nonce silently did nothing (it now raises a visible “form session expired” error so users know to try again).
Compatibility
- WordPress: 5.6 – 7.1
- PHP: 8.0 – 8.5
Tests
- PHP Coding Standards: PHP_CodeSniffer 3.13.6 / WPCS 3.4.1 — 0 errors
- PHPStan: level 9 — 0 errors
- PHPCompatibility: 8.0–8.5 — 0 issues
- PHPUnit: 9.6.36 — 98 tests, 197 assertions
1.6.6
Release date: 2026-09-17
Added
- Forced-enrollment warning on the profile 2FA section: when a user’s role enforces 2FA but they have no verification method configured yet, the 2FA section of their profile (wp-admin and the frontend shortcode) opens with a warning notice asking them to activate at least one method. While a grace period is active, the notice appends the remaining days.
Compatibility
- WordPress: 5.6 – 7.1
- PHP: 8.0 – 8.5
Tests
- PHP Coding Standards: PHP_CodeSniffer 3.13.6 / WPCS 3.4.1 — 0 errors
- PHPStan: level 9 — 0 errors
- PHPCompatibility: 8.0–8.5 — 0 issues
- PHPUnit: 9.6.36 — 93 tests, 189 assertions
1.6.5
Release date: 2026-09-17
Fixed
- Fatal error on the login screen with newer WordPress versions: the
login_messagefilter can deliver null when no message is set (observed on WordPress 7.x with PHP 8.4, TypeError on a plain visit to wp-login.php). The message callback now acceptsstring|nulland coalesces null to an empty string. - Hardened all externally-fed filter callbacks against null payloads: the four
authenticatecallbacks now acceptstring|nullcredentials (custom REST/SSO endpoints are known to apply the filter with null), and thewp_redirectfilter callback coalesces a null location. Verified safe as-is: shortcode callback, Settings API sanitizer, activation hooks, and admin-hook parameters.
Compatibility
- WordPress: 5.6 – 7.1
- PHP: 8.0 – 8.5
Tests
- PHP Coding Standards: PHP_CodeSniffer 3.13.6 / WPCS 3.4.1 — 0 errors
- PHPStan: level 9 — 0 errors
- PHPCompatibility: 8.0–8.5 — 0 issues
- PHPUnit: 9.6.36 — 87 tests, 180 assertions
1.6.4
Release date: 2026-09-11
Fixed
- Compatibility with Restrict Content Pro’s “Hijack Login URL” option: RCP’s
login_urlfilter made everywp_login_url()call return a membership page, so the 2FA verification redirect landed on a restricted page where the verification form cannot render, and the visitor was bounced to the registration page. Verification-stage URLs are now built from the canonicalwp-login.php, mirroring WordPress core’s URL construction before the filterable output. The “Back to login” link keeps the site-configured login URL.
Compatibility
- WordPress: 5.6 – 7.1
- PHP: 8.0 – 8.5
Tests
- PHP Coding Standards: PHP_CodeSniffer 3.13.6 / WPCS 3.4.1 — 0 errors
- PHPStan: level 9 — 0 errors
- PHPCompatibility: 8.0–8.5 — 0 issues
- PHPUnit: 9.6.36 — 78 tests, 171 assertions
1.6.3
Release date: 2026-08-24
Changed
- Manager detection now uses the ecosystem presence constant (
ROBOTSTXT_MANAGER_NOTICED, defined by Manager 1.6.2+) with a fallback to the plugin-list scan for older Manager versions, so a stale plugin list can no longer produce false “Manager missing” notices.
Fixed
- Compatibility with the ALTCHA Spam Protection plugin: when “Protect login” was enabled, submitting the 2FA verification code failed with “[ALTCHA] Sorry, your request could not be processed.”. The ALTCHA interceptor is now disabled while the verification screen is shown; the first login step keeps its ALTCHA check.
Compatibility
- WordPress: 5.6 – 7.1
- PHP: 8.0 – 8.5
Tests
- PHP Coding Standards: PHP_CodeSniffer 3.13.6 / WPCS 3.4.1 — 0 errors
- PHPStan: level 9 — 0 errors
- PHPCompatibility: 8.0–8.5 — 0 issues
- PHPUnit: 9.6.36 — 73 tests, 163 assertions
1.6.2
Release date: 2026-08-17
Added
- Recommendation notice for the Manager (by ROBOTSTXT) plugin: when it is not installed and active, a dismissible notice appears on the Plugins screen and a permanent notice is shown on the plugin settings page, since updates are delivered through the Manager plugin.
Changed
- Updates are now handled by the Manager (by ROBOTSTXT) plugin. The bundled self-updater (robotstxt-updater.php and update.json) has been removed.
- Plugin and update URLs moved to robotstxt.software.
- Minimum WordPress version lowered from 6.4 to 5.6 after a full compatibility review (the code only requires WordPress 5.3+ functions, and WordPress 5.6 is the first release that runs on the required PHP 8.0).
Compatibility
- WordPress: 5.6 – 7.1
- PHP: 8.0 – 8.5
Tests
- PHP Coding Standards: PHP_CodeSniffer 3.13.6 / WPCS 3.4.1 — 0 errors
- PHPStan: level 9 — 0 errors
- PHPCompatibility: 8.0–8.5 — 0 issues
- PHPUnit: 9.6.36 — 59 tests, 148 assertions
1.6.1
Release date: 2026-08-14
Fixed
- Fatal error during editor autosaves: the
shortcode expanded when WordPress applied content filters to a post revision via REST (for example, an article that merely mentions the shortcode in its text). In that contextsettings_errors()andsubmit_button()are not defined, causing a fatal error and a failed autosave. The shortcode now bails out early on REST requests (avoiding side effects such as OTP secret generation) and loads the required wp-admin includes on demand elsewhere.
Compatibility
- WordPress: 6.4 – 7.1
- PHP: 8.0 – 8.5
Tests
- PHP Coding Standards: PHP_CodeSniffer / WPCS — 0 errors
- PHPStan: level 9 — 0 errors
- PHPCompatibility: 8.0–8.5 — 0 issues
- PHPUnit: 9.6.34 — 59 tests, 148 assertions
1.6.0
Release date: 2026-08-07
Added
- REST API (namespace
robotstxt-2fa/v1, admin-only):GET/PUT /settingsto read and update the full configuration;GET /users?role=&status=to list users with their 2FA status (enabled, configured methods, required methods, forced, frequency, preferred method, OTP configured, unused recovery codes). No secrets exposed.
Changed
wp 2fa list— separate Enabled, Methods, and Required columns; new--requiredfilter.
Compatibility
- WordPress: 6.4 – 7.1
- PHP: 8.0 – 8.5
Tests
- PHP Coding Standards: PHP_CodeSniffer / WPCS — 0 errors
- PHPStan: level 9 — 0 errors
- PHPCompatibility: 8.0–8.5 — 0 issues
- PHPUnit: 9.6.34 — 55 tests, 140 assertions
1.5.3
Release date: 2026-08-07
Added
- Per-user preferred sign-in method — “Preferred method” dropdown on the user profile (shown when two or more methods are enabled) lets each user pick which verification method is requested first at login.
- Failed attempts are now cleared for the user on any successful 2FA login (email, OTP, or recovery), so no errors remain queued once they authenticate correctly.
- GeoIP auto-download — optional “Use the free ROBOTSTXT GeoIP database” checkbox in 2FA > Settings downloads the country database from ip.robotstxt.es into the uploads directory and refreshes it daily via WordPress cron. Includes a manual “Update now” button.
Fixed
- Security: the “Require 2FA to create Application Passwords” guard could be bypassed by requesting
/wp/v2/users/me/application-passwords(the regex only matched numeric user IDs). Now accepts themealias.
Changed
- Role enforcement is now a floor, not a ceiling. Required methods are still forced on the profile (enforced setup), but at login users may authenticate with any method they have configured — not only the role-required ones. Fixes users who only saw email despite configuring OTP/recovery.
- “Remember this browser” duration now follows each user’s verification frequency (daily/weekly/monthly) instead of a fixed global value, so the checkbox always complies with the profile setting.
Compatibility
- WordPress: 6.4 – 7.1
- PHP: 8.0 – 8.5
Tests
- PHP Coding Standards: PHP_CodeSniffer / WPCS — 0 errors
- PHPStan: level 9 — 0 errors
- PHPCompatibility: 8.0–8.5 — 0 issues
- PHPUnit: 9.6.34 — 50 tests, 121 assertions
1.5.2
Release date: 2026-06-06
Added
- OTP import tool (2FA > Import) — import authenticator secrets from third-party 2FA plugins without requiring users to reconfigure their app:
- Two Factor (community) — plain Base32 from
_two_factor_totp_keyuser meta. - WP 2FA (Melapress) — plain or encrypted Base32 from
wp_2fa_totp_keyuser meta; decrypted if WP 2FA is active. - Wordfence Login Security — raw binary from
wfls_2fa_secretstable, Base32-encoded on import. - Admin notice banner when importable secrets are detected; dismissible per-admin for 7 days or permanently via Import page preference.
- Import correctly skips users who already have OTP actively configured in our plugin; only imports for users who have not yet activated OTP here.
Fixed
- Deactivating the Authenticator App method from the profile no longer pre-generates a new OTP secret immediately. The secret is deleted cleanly and a fresh QR code is generated lazily the next time the user views their profile. This ensures the import tool can correctly detect these users as candidates.
Compatibility
- WordPress: 6.4 – 7.1
- PHP: 8.0 – 8.5
Tests
- PHP Coding Standards: PHP_CodeSniffer 3.13.5 / WPCS 3.3.0
- PHPStan: level 9 — 0 errors
- PHPCompatibility: 8.0–8.5 — 0 issues
- PHPUnit: 9.6.34 — 42 tests, 109 assertions
1.5.1
Release date: 2026-06-06
Security
- CSV exports use RFC 4180 encoding — fields with commas, double-quotes, or line breaks are correctly quoted. Replaces
addslashes(). - GeoIP database path validated with
is_file()and!is_link()at read time to block symlink traversal. robotstxt_2fa_app_password_verification_windowfilter return validated as a positive integer; falls back to 900 for invalid values.
Fixed
- Export CSV button now only rendered to users with
manage_optionscapability.
Compatibility
- WordPress: 6.4 – 7.1
- PHP: 8.0 – 8.5
Tests
- PHP Coding Standards: PHP_CodeSniffer 3.13.5 / WPCS 3.3.0
- PHPStan: level 9 — 0 errors
- PHPCompatibility: 8.0–8.5 — 0 issues
- PHPUnit: 9.6.34 — 42 tests, 109 assertions
1.5.0
Release date: 2026-06-05
Added
- Full audit user table (WP_List_Table) with sortable columns, role/status filters, and CSV export.
- GeoIP country restrictions via optional MaxMind GeoLite2 database: per-country allow list, deny list, always-challenge list.
- Require recent 2FA verification before creating Application Passwords (REST endpoint, 15-min window, filterable).
- WP-CLI
wp 2fa export— CSV report via stdout. robotstxt_2fa_force_challengefilter — override frequency skip; used by GeoIP always-challenge.maxmind-db/readeradded as optional production Composer dependency.
Fixed
- Email digest cron now reschedules correctly when frequency changes (weekly ↔ monthly).
Compatibility
- WordPress: 6.4 – 7.1
- PHP: 8.0 – 8.5
Tests
- PHP Coding Standards: PHP_CodeSniffer 3.13.5 / WPCS 3.3.0
- PHPStan: level 9 — 0 errors
- PHPCompatibility: 8.0–8.5 — 0 issues
- PHPUnit: 9.6.34 — 42 tests, 109 assertions
1.4.0
Release date: 2026-06-05
Added
- Audit Dashboard — top-level admin page with summary cards (total users, 2FA-enabled, recent failed attempts), failed attempts table, and 2FA status column in Users list.
- Failed attempts log —
robotstxt_2fa_failed_logring buffer (max 100 entries) populated on every failed verification; IPs anonymized. - Email notifications (each independently configurable):
- Admin-enabled 2FA: user is notified when an administrator activates 2FA for them.
- New location login: user is notified on first successful login from an unrecognised context.
- Recovery code used: user (and optionally site admin) notified when a recovery code is consumed.
- Activity digest: WP-Cron weekly or monthly summary sent to administrators.
- Application Passwords exemption: REST API clients skip the 2FA browser challenge by default.
- IP allow list: IPs/CIDR ranges that bypass 2FA (via
robotstxt_2fa_skip_challenge). - IP deny list: IPs/CIDR ranges blocked from login entirely (via
authenticateat priority 1). - IPv4 + IPv6 CIDR matching (pure PHP, no external dependency).
Compatibility
- WordPress: 6.4 – 7.1
- PHP: 8.0 – 8.5
Tests
- PHP Coding Standards: PHP_CodeSniffer 3.13.5 / WPCS 3.3.0
- PHPStan: level 9 — 0 errors
- PHPCompatibility: 8.0–8.5 — 0 issues
- PHPUnit: 9.6.34 — 42 tests, 109 assertions
1.3.0
Release date: 2026-06-05
Security
- TOTP replay prevention: accepted counter step stored in a 90-second transient; same code rejected on second submission within the ±1 window.
- Login username removed from 2FA redirect URLs:
robotstxt-2fa-loginquery parameter replaced with an opaque 32-character token resolved server-side. Username never appears in browser history, logs, or referrer headers.
Added
- WP-CLI command family
wp 2fa(loaded only whenWP_CLIis defined): wp 2fa status— show 2FA configuration.wp 2fa enable [--method=]— enable 2FA.wp 2fa disable— disable 2FA, preserving secrets and codes.wp 2fa reset-recovery— regenerate and display recovery codes.wp 2fa list [--role=] [--without-2fa] [--format=table|csv|json]— list users with 2FA status.wp 2fa force-setup [] [--role=] [--method=]— enforce 2FA.wp 2fa bypass [--days=]— grant temporary bypass (max 30 days).
Compatibility
- WordPress: 6.4 – 7.1
- PHP: 8.0 – 8.5
Tests
- PHP Coding Standards: PHP_CodeSniffer 3.13.5 / WPCS 3.3.0
- PHPStan: level 9 — 0 errors
- PHPCompatibility: 8.0–8.5 — 0 issues
- PHPUnit: 9.6.34 — 42 tests, 109 assertions
1.2.1
Release date: 2026-06-05
Fixed
- Recovery code confirmation without the method checkbox now correctly activates the method.
- Fatal error on admin profile pages (add_settings_error not available at init in multisite).
- OTP and recovery text inputs no longer disabled by JS when Enable toggle is off.
- Regenerate codes now requires re-confirmation before the method reactivates.
- Entering a valid OTP or recovery code activates the method even without checking the checkbox.
- Recovery regeneration field validated with strict value check.
Compatibility
- WordPress: 6.4 – 7.1
- PHP: 8.0 – 8.5
Tests
- PHP Coding Standards: PHP_CodeSniffer 3.13.5 / WPCS 3.3.0
- PHPStan: level 9 — 0 errors
- PHPCompatibility: 8.0–8.5 — 0 issues
- PHPUnit: 9.6.34 — 42 tests, 109 assertions
1.1.0
Release date: 2026-06-05
Added
- Developer filter/action hooks:
robotstxt_2fa_skip_challenge,robotstxt_2fa_verification_success,robotstxt_2fa_verification_failed,robotstxt_2fa_method_enabled,robotstxt_2fa_method_disabled,robotstxt_2fa_code_length,robotstxt_2fa_code_ttl,robotstxt_2fa_resend_interval,robotstxt_2fa_email_subject,robotstxt_2fa_email_message,robotstxt_2fa_before_send_email. robotstxt_2fa_required_methods_for_userfilter to override per-user method requirements.robotstxt_2fa_profile_wrapper_classfilter for the frontend shortcode container.robotstxt_2fa_profile] shortcode — renders the full 2FA settings section on any WordPress page without requiring wp-admin access. Supportsuser_idandredirect` attributes.top_up_codes_for_user()method onRecovery_Codes— generates only the missing codes to fill the batch back to 10, preserving existing unused codes.- “Regenerate codes” button on the profile when recovery codes are active, without needing to disable and re-enable the method.
Compatibility
- WordPress: 6.4 – 7.1
- PHP: 8.0 – 8.5
Tests
- PHP Coding Standards: PHP_CodeSniffer 3.13.5 / WPCS 3.3.0
- PHPStan: level 9 — 0 errors
- PHPCompatibility: 8.0–8.5 — 0 issues
- PHPUnit: 9.6.34 — 42 tests, 109 assertions
1.0.0
Release date: 2026-06-05
Fixed
- Enable 2FA checkbox now defaults to email and pre-checks it in the UI on first activation.
- QR code for authenticator apps now displays correctly in the user profile.
- “Send the code again” link is disabled for 60 seconds after delivery with a live countdown.
Changed
- Recovery codes section redesigned: plain list with code chips, no coloured notification box.
- 2FA login screen links now in a vertical list for better readability.
Removed
- “Generate new secret” button from the OTP section.
Compatibility
- WordPress: 6.4 – 7.1
- PHP: 8.0 – 8.5
Tests
- PHP Coding Standards: PHP_CodeSniffer 3.13.5 / WPCS 3.3.0
- PHPStan: level 9 — 0 errors
- PHPCompatibility: 8.0–8.5 — 0 issues
- PHPUnit: 9.6.34 — 42 tests, 109 assertions
0.3.0
Release date: 2026-06-05
Added
- Delete-on-uninstall option (disabled by default — all plugin data is preserved on removal).
Security
- Email verification codes now use
random_int()(CSPRNG). - Recovery code preview transient TTL reduced from indefinite to 5 minutes.
Fixed
- Network admin settings now save correctly via a dedicated handler writing to
wp_sitemeta. - Settings option registered with
autoload=false. update.jsoncorrected to reference the 2FA plugin instead of the SMTP plugin.
Compatibility
- WordPress: 6.4 – 7.1
- PHP: 8.0 – 8.5
Tests
- PHP Coding Standards: PHP_CodeSniffer 3.13.5 / WPCS 3.3.0
- PHPStan: level 9 — 0 errors
- PHPCompatibility: 8.0–8.5 — 0 issues
- PHPUnit: 9.6.34 — 42 tests, 109 assertions
0.2.0
Release date: 2026-06-05
Added
- Per-role 2FA method matrix with select-all row/column controls.
- Authenticator app (TOTP) support with QR provisioning and manual setup key.
- Recovery codes: 10 single-use 8-digit codes with confirmation workflow.
- Email-based verification codes with 60-second resend throttle and 10-minute expiry.
- Configurable verification frequency (every login, daily, weekly, monthly) per device.
- Dedicated stage token (WP nonce) securing the 2FA screen.
- Network-wide multisite support.
- Admin settings page with top-level menu.
Changed
- Profile method checkboxes require explicit confirmation before activation.
Fixed
- QR generation errors caught; recovery-code preview persists until acknowledged.
Compatibility
- WordPress: 6.4 – 7.0
- PHP: 8.0 – 8.5
Tests
- PHP Coding Standards: PHP_CodeSniffer 3.13.5 / WPCS 3.3.0
- PHPStan: level 9 — 0 errors
- PHPUnit: 9.6.34
0.1.0
Release date: 2024-04-08
Added
- Initial plugin skeleton.
- Documentation files.
- Placeholder classes for login handling, profile integration, and admin settings.
