v1.6.0
This commit is contained in:
parent
38520b2ba7
commit
fd2880bece
1 changed files with 1075 additions and 87 deletions
|
|
@ -1,5 +1,60 @@
|
|||
== Changelog ==
|
||||
|
||||
= 1.6.0 =
|
||||
|
||||
_Release date: 2026-08-07_
|
||||
|
||||
**Added**
|
||||
|
||||
* REST API (namespace `robotstxt-2fa/v1`, admin-only): `GET/PUT /settings` to 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 `--required` filter.
|
||||
|
||||
**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 the `me` alias.
|
||||
|
||||
**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_
|
||||
|
|
|
|||
Loading…
Reference in a new issue