This commit is contained in:
Javier Casares 2026-06-05 14:07:16 +00:00
commit d405d8587d
11 changed files with 232 additions and 223 deletions

View file

@ -1,69 +0,0 @@
# Changelog
All notable changes to this project are documented in this file.
Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
## [Unreleased]
## [0.3.0] - 2026-06-05
### Added
- Delete-on-uninstall option in admin settings Data Management section (off by default — all data is preserved).
### Changed
- Network admin settings page now correctly saves to `wp_sitemeta` via a dedicated `network_admin_edit_` handler.
- Settings option stored with `autoload=false` — not needed on every page load.
- Recovery code preview transient TTL reduced from 0 (persistent) to 300 seconds (5 minutes).
### Security
- Email verification codes now use `random_int()` (CSPRNG) instead of `wp_rand()` (Mersenne Twister), consistent with recovery codes and OTP secrets.
### Fixed
- `get_required_capability()` now returns `manage_network_options` in network admin context.
- `bin/deploy.sh` now excludes `CLAUDE.md`, `AGENTS.md`, `README.md`, `DOCUMENTATION-*.md`, and `.phpunit.result.cache` from the ZIP artifact.
- `update.json` corrected: was shipping SMTP plugin data instead of 2FA plugin data.
## [0.2.0] - 2026-06-05
### Added
- Per-role 2FA method matrix: admins choose exactly which verification methods (email, OTP, recovery codes) are required for each WordPress role, with select-all row and column toggles.
- Authenticator app (TOTP) support: secrets stored as Base32, QR code rendered via `bacon/bacon-qr-code`, manual setup key displayed as fallback.
- Recovery codes: 10 single-use 8-digit codes, one-time display grid with copy-to-clipboard, mandatory confirmation before activation, auto-refresh when batch exhausted.
- Email verification codes: 7-digit codes, 10-minute expiry, 60-second resend throttle.
- Configurable verification frequency remembered per device fingerprint (every login / daily / weekly / monthly); administrators can lock the global schedule.
- Dedicated stage token (WP nonce) securing the 2FA screen between password validation and code entry.
- Method-switch links on the verification screen (OTP ↔ email ↔ recovery codes) without restarting the login.
- Multisite support: `Network: true` header; network admins set and lock enforcement settings.
- `uninstall.php` removes all plugin options and user meta on deletion.
- `bin/deploy.sh` for manual ZIP packaging.
- PHPUnit test suite with plugin-header tests.
### Changed
- Settings UI replaces flat forced-roles list with per-role method matrix; existing `force_roles` + `default_method` data is automatically migrated.
- Profile method checkboxes require explicit confirmation before activating (OTP: valid 6-digit code; recovery codes: enter one displayed code).
- Required methods indicated with a "required for your role" badge in the profile; checkboxes disabled and hidden inputs ensure values survive submission.
- Login screen hides username/password fields, removes Remember Me, focuses code input, and auto-submits when digit count is reached.
### Fixed
- QR generation errors caught and surfaced to administrators; graceful fallback to text setup key.
- Recovery-code preview persists via transient until explicitly acknowledged.
### Security
- All `$_POST`/`$_GET`/`$_SERVER` reads guarded with `is_string()` before passing to sanitize functions.
- PHPStan level 9 passes with zero errors; no mixed-type casts.
- `composer audit`: no known vulnerabilities in any dependency.
## [0.1.0] - 2024-04-08
### Added
- Initial plugin skeleton with placeholder classes for login handling, user profile, and admin settings.
- Initial documentation files.

View file

@ -1,44 +1,64 @@
.robotstxt-2fa-method-list {
margin-top: 0.5em;
}
.robotstxt-2fa-method {
margin-bottom: 1.5em;
}
.robotstxt-2fa-method:last-of-type {
margin-bottom: 0;
}
.robotstxt-2fa-otp-qr {
height: auto;
max-width: 220px;
}
.robotstxt-2fa-recovery-code-grid {
display: grid;
gap: 8px 16px;
grid-template-columns: repeat(2, minmax(140px, 1fr));
}
.robotstxt-2fa-recovery-code-row {
display: contents;
}
.robotstxt-2fa-recovery-code-item {
font-size: 1.2em;
font-weight: 600;
}
.robotstxt-2fa-recovery-confirm {
margin-top: 1em;
}
.robotstxt-2fa-recovery-confirm label {
display: block;
margin-bottom: 0.5em;
}
.robotstxt-2fa-recovery-confirm input {
max-width: 200px;
}
.robotstxt-2fa-method-list {
margin-top: 0.5em;
}
.robotstxt-2fa-method {
margin-bottom: 1.5em;
}
.robotstxt-2fa-method:last-of-type {
margin-bottom: 0;
}
.robotstxt-2fa-otp-qr {
display: block;
height: auto;
margin: 0.75em 0;
max-width: 200px;
}
/* Recovery codes preview block */
.robotstxt-2fa-recovery-preview {
margin: 0.75em 0 0.5em;
}
.robotstxt-2fa-recovery-code-list {
display: grid;
font-family: monospace;
font-size: 1em;
gap: 4px 2em;
grid-template-columns: repeat(2, max-content);
list-style: none;
margin: 0.5em 0 1em;
padding: 0;
}
.robotstxt-2fa-recovery-code-list li code {
background: #f6f7f7;
border: 1px solid #dcdcde;
border-radius: 2px;
display: inline-block;
font-size: 1em;
letter-spacing: 0.05em;
padding: 3px 8px;
}
.robotstxt-2fa-recovery-copy-feedback {
color: #1d7548;
margin-left: 0.75em;
}
/* Confirmation input */
.robotstxt-2fa-recovery-confirm {
margin-top: 0.75em;
}
.robotstxt-2fa-recovery-confirm label {
display: block;
font-weight: 600;
margin-bottom: 0.4em;
}
.robotstxt-2fa-recovery-confirm input {
max-width: 180px;
}

View file

@ -2,6 +2,35 @@
## [Unreleased]
## [1.0.0] - 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.2 – 8.5
**Tests**
* PHP Coding Standards: PHP_CodeSniffer 3.13.5 / WPCS 3.3.0
* PHPStan: level 9 — 0 errors
* PHPCompatibility: 8.2–8.5 — 0 issues
* PHPUnit: 9.6.34 — 42 tests, 109 assertions
## [0.3.0] - 2026-06-05
### Added

View file

@ -52,7 +52,16 @@ class Email_Code_Sender {
* @return int
*/
public function get_code_length(): int {
return self::CODE_LENGTH;
return self::CODE_LENGTH;
}
/**
* Retrieve the minimum seconds that must elapse between resends.
*
* @return int
*/
public function get_resend_interval(): int {
return self::RESEND_INTERVAL;
}
/**

View file

@ -287,44 +287,23 @@ class Login_Form_Manager {
);
}
if ( ! empty( $alternates ) ) {
$link_markup = array();
foreach ( $alternates as $alternate ) {
$link_markup[] = sprintf(
'<a href="%1$s">%2$s</a>',
esc_url( $alternate['url'] ),
esc_html( $alternate['label'] )
);
}
printf(
'<p class="robotstxt-2fa-alternate description robotstxt-2fa-stage-field">%1$s %2$s</p>',
esc_html__( 'Prefer a different verification method?', 'robotstxt-2fa' ),
wp_kses_post( implode( ' <span class="robotstxt-2fa-links-separator" aria-hidden="true">&bull;</span> ', $link_markup ) )
);
}
$back_url = wp_login_url( $this->get_requested_redirect() );
?>
<p class="robotstxt-2fa-login-links robotstxt-2fa-stage-field">
<a class="robotstxt-2fa-back-link" href="<?php echo esc_url( $back_url ); ?>"><?php esc_html_e( 'Back to login', 'robotstxt-2fa' ); ?></a>
<?php if ( 'email' === $method && '' !== $stage_token ) : ?>
<span class="robotstxt-2fa-links-separator" aria-hidden="true">&bull;</span>
<a class="robotstxt-2fa-resend-link" href="
<?php
echo esc_url(
$this->get_stage_url(
array(
self::QUERY_RESEND => '1',
self::QUERY_NOTICE => null,
)
)
);
?>
"><?php esc_html_e( 'Send the code again', 'robotstxt-2fa' ); ?></a>
<ul class="robotstxt-2fa-login-links robotstxt-2fa-stage-field">
<?php if ( 'email' === $method && '' !== $stage_token ) : ?>
<li>
<a class="robotstxt-2fa-resend-link" href="<?php echo esc_url( $this->get_stage_url( array( self::QUERY_RESEND => '1', self::QUERY_NOTICE => null ) ) ); ?>">
<?php esc_html_e( 'Send the code again', 'robotstxt-2fa' ); ?>
</a>
</li>
<?php endif; ?>
</p>
<?php foreach ( $alternates as $alternate ) : ?>
<li>
<a href="<?php echo esc_url( $alternate['url'] ); ?>"><?php echo esc_html( $alternate['label'] ); ?></a>
</li>
<?php endforeach; ?>
<li><a class="robotstxt-2fa-back-link" href="<?php echo esc_url( $back_url ); ?>"><?php esc_html_e( 'Back to login', 'robotstxt-2fa' ); ?></a></li>
</ul>
<?php
}
@ -348,6 +327,14 @@ class Login_Form_Manager {
#loginform .wp-hide-pw {
display: none !important;
}
.robotstxt-2fa-login-links {
list-style: none;
margin: 0.5em 0 0;
padding: 0;
}
.robotstxt-2fa-login-links li {
margin: 0.4em 0;
}
</style>
<?php
}
@ -412,7 +399,18 @@ class Login_Form_Manager {
return;
}
$login = $this->get_requested_login();
$login = $this->get_requested_login();
$method = $this->get_requested_method();
$sent_at = 0;
if ( 'email' === $method && '' !== $login ) {
$user = get_user_by( 'login', $login );
if ( $user instanceof \WP_User ) {
$challenge = $this->user_settings_repository->get_email_challenge( $user->ID );
$sent_at = $challenge['sent_at'];
}
}
?>
<script>
(function() {
@ -467,6 +465,32 @@ class Login_Form_Manager {
if ( tokenField ) {
tokenField.focus();
}
/* Resend link cooldown */
var resendLink = document.querySelector('.robotstxt-2fa-resend-link');
if ( resendLink ) {
var sentAt = <?php echo absint( $sent_at ); ?>;
var cooldown = <?php echo absint( $this->email_code_sender->get_resend_interval() ); ?>;
var label = resendLink.textContent.trim();
function updateResend() {
var remaining = cooldown - ( Math.floor( Date.now() / 1000 ) - sentAt );
if ( remaining <= 0 ) {
resendLink.removeAttribute('aria-disabled');
resendLink.style.opacity = '';
resendLink.style.pointerEvents = '';
resendLink.textContent = label;
} else {
resendLink.setAttribute('aria-disabled', 'true');
resendLink.style.opacity = '0.45';
resendLink.style.pointerEvents = 'none';
resendLink.textContent = label + ' (' + remaining + 's)';
setTimeout( updateResend, 1000 );
}
}
updateResend();
}
})();
</script>
<?php
@ -811,7 +835,17 @@ class Login_Form_Manager {
}
}
return $available;
// Return methods in canonical priority order: OTP first, email second, recovery last.
$priority = array( 'otp', 'email', 'recovery' );
$sorted = array();
foreach ( $priority as $p ) {
if ( in_array( $p, $available, true ) ) {
$sorted[] = $p;
}
}
return $sorted;
}
/**

View file

@ -45,11 +45,6 @@ class Profile_Settings {
*/
private const OTP_CODE_FIELD = 'robotstxt_2fa_otp_code';
/**
* Form field used to request a new OTP secret.
*/
private const OTP_REGENERATE_FIELD = 'robotstxt_2fa_regenerate_otp';
/**
* Form field used to confirm recovery codes.
*/
@ -354,7 +349,7 @@ class Profile_Settings {
<?php esc_html_e( 'Scan the QR code or enter the setup key below in your authenticator app.', 'robotstxt-2fa' ); ?>
</p>
<?php if ( '' !== $otp_qr_data_uri ) : ?>
<img src="<?php echo esc_url( $otp_qr_data_uri ); ?>" alt="<?php esc_attr_e( 'Authenticator app QR code', 'robotstxt-2fa' ); ?>" class="robotstxt-2fa-otp-qr" />
<img src="<?php echo esc_url( $otp_qr_data_uri, array_merge( wp_allowed_protocols(), array( 'data' ) ) ); ?>" alt="<?php esc_attr_e( 'Authenticator app QR code', 'robotstxt-2fa' ); ?>" class="robotstxt-2fa-otp-qr" />
<?php else : ?>
<p class="description error">
<?php esc_html_e( 'Install the QR code library and enable the XMLWriter extension to display the authenticator code image. Run the following command inside this plugin directory:', 'robotstxt-2fa' ); ?>
@ -374,13 +369,7 @@ class Profile_Settings {
<?php esc_html_e( 'Authenticator code', 'robotstxt-2fa' ); ?>
</label>
<input type="text" name="<?php echo esc_attr( self::OTP_CODE_FIELD ); ?>" id="robotstxt-2fa-otp-code" pattern="\\d{<?php echo absint( $otp_digits ); ?>}" inputmode="numeric" autocomplete="one-time-code" />
<p class="description">
<?php esc_html_e( 'Need a different pairing? Use the button below to generate a new QR code.', 'robotstxt-2fa' ); ?>
</p>
<?php endif; ?>
<button type="submit" class="button button-secondary" name="<?php echo esc_attr( self::OTP_REGENERATE_FIELD ); ?>" value="1">
<?php esc_html_e( 'Generate new secret', 'robotstxt-2fa' ); ?>
</button>
</div>
<?php $recovery_required = in_array( 'recovery_codes', $required_methods, true ); ?>
<?php if ( $recovery_required ) : ?>
@ -426,42 +415,33 @@ class Profile_Settings {
</p>
<?php endif; ?>
<?php if ( $has_preview ) : ?>
<div class="notice notice-success inline robotstxt-2fa-recovery-preview" data-robotstxt-2fa-codes-scope="1">
<div class="robotstxt-2fa-recovery-preview" data-robotstxt-2fa-codes-scope="1">
<p class="description">
<?php esc_html_e( 'Copy these recovery codes and store them somewhere safe. Each code works only once.', 'robotstxt-2fa' ); ?>
</p>
<div class="robotstxt-2fa-recovery-code-grid" data-robotstxt-2fa-codes-list>
<?php
$code_pairs = array_chunk( $preview_codes, 2 );
foreach ( $code_pairs as $pair ) :
?>
<div class="robotstxt-2fa-recovery-code-row">
<?php foreach ( $pair as $preview_code ) : ?>
<div class="robotstxt-2fa-recovery-code-item">
<code data-robotstxt-2fa-code><?php echo esc_html( $preview_code ); ?></code>
<?php endforeach; ?>
<?php if ( 1 === count( $pair ) ) : ?>
<div class="robotstxt-2fa-recovery-code-item">&nbsp;</div>
<?php endif; ?>
</div>
<ul class="robotstxt-2fa-recovery-code-list" data-robotstxt-2fa-codes-list>
<?php foreach ( $preview_codes as $preview_code ) : ?>
<li><code data-robotstxt-2fa-code><?php echo esc_html( $preview_code ); ?></code></li>
<?php endforeach; ?>
</div>
<button type="button" class="button button-secondary robotstxt-2fa-recovery-copy" data-robotstxt-2fa-copy-button="1">
<?php esc_html_e( 'Copy codes', 'robotstxt-2fa' ); ?>
</button>
<p class="description robotstxt-2fa-recovery-copy-feedback" data-robotstxt-2fa-copy-feedback="1" hidden>
<?php esc_html_e( 'The recovery codes have been copied to your clipboard.', 'robotstxt-2fa' ); ?>
</ul>
<p>
<button type="button" class="button button-secondary robotstxt-2fa-recovery-copy" data-robotstxt-2fa-copy-button="1">
<?php esc_html_e( 'Copy codes', 'robotstxt-2fa' ); ?>
</button>
<span class="robotstxt-2fa-recovery-copy-feedback" data-robotstxt-2fa-copy-feedback="1" hidden>
<?php esc_html_e( '✓ Copied to clipboard', 'robotstxt-2fa' ); ?>
</span>
</p>
<?php if ( ! $recovery_enabled ) : ?>
<div class="robotstxt-2fa-recovery-confirm">
<label class="robotstxt-2fa-recovery-confirm-label" for="robotstxt-2fa-recovery-confirm">
<?php esc_html_e( 'Enter one of the codes above to confirm you saved them.', 'robotstxt-2fa' ); ?>
<label for="robotstxt-2fa-recovery-confirm">
<?php esc_html_e( 'Enter one of the codes above to confirm you saved them:', 'robotstxt-2fa' ); ?>
</label>
<input type="text" name="<?php echo esc_attr( self::RECOVERY_CONFIRM_FIELD ); ?>" id="robotstxt-2fa-recovery-confirm" pattern="\\d{<?php echo absint( $recovery_code_length ); ?>}" inputmode="numeric" autocomplete="one-time-code" />
<p class="description">
<?php esc_html_e( 'Once confirmed, the codes disappear from this page but remain valid until you use them.', 'robotstxt-2fa' ); ?>
</p>
</div>
<p class="description">
<?php esc_html_e( 'Once confirmed, the codes disappear from this page but remain valid until you use them.', 'robotstxt-2fa' ); ?>
</p>
<?php endif; ?>
</div>
<?php elseif ( ! $recovery_enabled ) : ?>
@ -540,7 +520,16 @@ class Profile_Settings {
}
}
toggle.addEventListener( 'change', applyState );
toggle.addEventListener( 'change', function () {
applyState();
// Pre-check email when enabling 2FA for the first time.
if ( toggle.checked ) {
var emailCheckbox = document.getElementById( 'robotstxt-2fa-method-email' );
if ( emailCheckbox && ! emailCheckbox.checked ) {
emailCheckbox.checked = true;
}
}
} );
applyState();
}());
</script>
@ -717,12 +706,6 @@ class Profile_Settings {
$otp_was_enabled = in_array( 'otp', $previous_methods, true );
$recovery_was_enabled = in_array( 'recovery_codes', $previous_methods, true );
$otp_regenerate_requested = isset( $_POST[ self::OTP_REGENERATE_FIELD ] );
if ( $otp_regenerate_requested ) {
$this->focus_section = true;
}
$otp_code = '';
if ( isset( $_POST[ self::OTP_CODE_FIELD ] ) && is_string( $_POST[ self::OTP_CODE_FIELD ] ) ) {
@ -746,21 +729,8 @@ class Profile_Settings {
$otp_requested = in_array( 'otp', $requested_methods, true );
$otp_should_remain_enabled = false;
if ( $otp_regenerate_requested ) {
$this->otp_manager->delete_secret( $user_id );
$this->otp_manager->ensure_secret( $user );
$otp_was_enabled = false;
$otp_requested = true;
add_settings_error(
'robotstxt-2fa',
'robotstxt-2fa-otp-reset',
__( 'A new authenticator secret is ready. Scan the QR code and confirm it with a fresh code to finish reconnecting.', 'robotstxt-2fa' ),
'updated'
);
}
if ( $otp_was_enabled ) {
if ( $otp_requested && ! $otp_regenerate_requested ) {
if ( $otp_requested ) {
$otp_should_remain_enabled = true;
} else {
$this->otp_manager->delete_secret( $user_id );
@ -865,6 +835,11 @@ class Profile_Settings {
$selected_methods = array_values( array_unique( $selected_methods ) );
// When enabling for the first time without selecting a method, default to email.
if ( $enabled && empty( $selected_methods ) && in_array( 'email', $available_keys, true ) ) {
$selected_methods[] = 'email';
}
if ( ! $is_forced && empty( $selected_methods ) ) {
$enabled = false;
}

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.2
Stable tag: 0.3.0
Stable tag: 1.0.0
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
@ -59,6 +59,17 @@ Yes. Activate the plugin at the network level. Network administrators can set an
== Changelog ==
= 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.
= 0.3.0 =
_Release date: 2026-06-05_

View file

@ -3,7 +3,7 @@
* Plugin Name: 2FA (by ROBOTSTXT)
* Plugin URI: https://www.robotstxt.es/plugins/robotstxt-2fa/
* Description: Adds two-factor authentication to the WordPress login flow.
* Version: 0.3.0
* Version: 1.0.0
* Author: ROBOTSTXT
* Author URI: https://www.robotstxt.es/
* Text Domain: robotstxt-2fa
@ -23,7 +23,7 @@ if ( ! defined( 'ABSPATH' ) ) {
}
if ( ! defined( 'ROBOTSTXT_2FA_VERSION' ) ) {
define( 'ROBOTSTXT_2FA_VERSION', '0.3.0' );
define( 'ROBOTSTXT_2FA_VERSION', '1.0.0' );
}
if ( ! defined( 'ROBOTSTXT_2FA_FILE' ) ) {

View file

View file

@ -1,8 +1,8 @@
{
"name": "2FA (by ROBOTSTXT)",
"slug": "robotstxt-2fa",
"version": "0.3.0",
"download_url": "https://git.robotstxt.es/ROBOTSTXT/robotstxt-2fa/releases/download/0.3.0/robotstxt-2fa-0.3.0.zip",
"version": "1.0.0",
"download_url": "https://git.robotstxt.es/ROBOTSTXT/robotstxt-2fa/releases/download/1.0.0/robotstxt-2fa-1.0.0.zip",
"requires": "6.4",
"requires_php": "8.2",
"tested": "7.1",
@ -11,10 +11,10 @@
"author_profile": "https://www.robotstxt.es/",
"homepage": "https://www.robotstxt.es/plugins/robotstxt-2fa/",
"description": "Adds per-role two-factor authentication to the WordPress login flow. Supports email codes, authenticator apps (TOTP), and recovery codes.",
"changelog": "<h3>0.3.0 - 2026-06-05</h3><ul><li><strong>Added:</strong> Per-role 2FA method matrix with select-all row/column controls</li><li><strong>Added:</strong> Delete-on-uninstall option (data preserved by default)</li><li><strong>Security:</strong> Email verification codes now use CSPRNG (random_int)</li><li><strong>Security:</strong> Recovery code preview TTL reduced to 5 minutes</li><li><strong>Fixed:</strong> Network admin settings page now saves correctly</li></ul><h3>0.2.0 - 2026-06-05</h3><ul><li>Initial fully featured release with email, OTP, and recovery code authentication</li></ul>",
"changelog": "<h3>1.0.0 - 2026-06-05</h3><ul><li><strong>Fixed:</strong> Enable 2FA toggle defaults to email on first activation</li><li><strong>Fixed:</strong> QR code now displays correctly in user profiles</li><li><strong>Fixed:</strong> Resend link shows 60-second countdown</li><li><strong>Changed:</strong> Recovery codes redesigned as plain list</li><li><strong>Changed:</strong> Login links now vertical list</li></ul>",
"sections": {
"description": "Adds per-role two-factor authentication to the WordPress login flow. Supports email codes, authenticator apps (TOTP), and recovery codes.",
"changelog": "<h3>0.3.0 - 2026-06-05</h3><ul><li><strong>Added:</strong> Per-role 2FA method matrix with select-all row/column controls</li><li><strong>Added:</strong> Delete-on-uninstall option (data preserved by default)</li><li><strong>Security:</strong> Email verification codes now use CSPRNG (random_int)</li><li><strong>Security:</strong> Recovery code preview TTL reduced to 5 minutes</li><li><strong>Fixed:</strong> Network admin settings page now saves correctly</li></ul>"
"changelog": "<h3>1.0.0 - 2026-06-05</h3><ul><li><strong>Fixed:</strong> Enable 2FA toggle defaults to email on first activation</li><li><strong>Fixed:</strong> QR code now displays correctly in user profiles</li><li><strong>Fixed:</strong> Resend link shows 60-second countdown</li><li><strong>Changed:</strong> Recovery codes redesigned as plain list</li><li><strong>Changed:</strong> Login links now vertical list</li></ul>"
},
"banners": {
"low": "",

View file

@ -1,9 +1,9 @@
<?php return array(
'root' => array(
'name' => 'robotstxt/robotstxt-2fa',
'pretty_version' => '1.0.0+no-version-set',
'version' => '1.0.0.0',
'reference' => null,
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '4ff3019f7db5f58be0ecb3a3f1bb97bd97bdd153',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
@ -29,9 +29,9 @@
'dev_requirement' => false,
),
'robotstxt/robotstxt-2fa' => array(
'pretty_version' => '1.0.0+no-version-set',
'version' => '1.0.0.0',
'reference' => null,
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '4ff3019f7db5f58be0ecb3a3f1bb97bd97bdd153',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),