| 开发者 | berrypress |
|---|---|
| 更新时间 | 2026年4月18日 04:32 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GNU General Public License version 3 or later |
| 版权网址: | 版权信息 |
wp-login.php, eligible roles may request a one-time email code instead of entering a password.wp-login.php and on the WooCommerce My Account login form.wp-login.php, controlled per role.templates/ directory. To override, copy the desired template into the active theme or child theme under templates/loginberry/ (see each template file header for the exact path).
Email delivery
Reliable outbound email is required for codes to arrive. Typical setups use the hosting provider’s mail relay, a transactional email API (for example Brevo, Mailchimp Transactional / Mandrill, Postmark, SendGrid, Amazon SES), or a WordPress plugin that sends mail via SMTP or a provider API. Test delivery with a real signup or code request before relying on the feature in production.
Typical use cases
account-activate and add the shortcode [loginberry_account_activate]. The Account Verification settings screen includes setup guidance.No. Each feature is independent. You may enable only the components you need.
WordPress 6.0 or newer, PHP 8.0 or newer, and reliable outbound email.
The site must be able to send email. Common approaches include the host’s SMTP relay, a transactional email provider, or a WordPress plugin that sends via SMTP or an HTTP API. Verify end-to-end delivery with a test message after any mail configuration change.
Go to BerryPress → LoginBerry → Two Factor Auth, enable the feature, and set each role to Required, Optional, or Disabled.
When enabled for a role, users on wp-login.php can request a six-digit code by email instead of entering a password.
Yes. When both are enabled for the same role, the passwordless login flow skips the separate 2FA step because possession of the email inbox has already been verified.
In the plugin templates/ directory: activation-email.php, 2fa-email.php, passwordless-login-email.php. Override by copying to the theme where supported.
The plugin uses clean WordPress markup. Layout may vary slightly depending on theme styles, so if you see any styling quirks, feel free to reach out.
Yes. WooCommerce is optional. Without WooCommerce, verification (if enabled), 2FA on wp-login.php, passwordless login (if enabled), and login logs remain available. With WooCommerce active, 2FA is also available on the My Account login form, and account verification may optionally be tied to order creation, including a paid orders only option.
Passwordless login is implemented for the standard WordPress login screen (wp-login.php). WooCommerce My Account login supports two-factor authentication as described above; passwordless login on other forms is outside the current scope.
Yes. In Users → All Users you will see links to activate accounts, resend codes, or unlock accounts.
Yes. Under Users → All Users, administrators can view status, resend codes, activate accounts manually, and unlock locked accounts when applicable.
Another administrator can usually resolve the issue under Users → All Users. If the site cannot be accessed from wp-admin, deactivate the plugin using standard WordPress recovery methods (for example renaming the plugin directory via FTP or SFTP, using WP-CLI where available, editing the active_plugins option after a database backup, or WordPress Recovery Mode when applicable).
Deactivating plugins when wp-admin is unavailable: https://wordpress.org/documentation/article/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/
wp-login.php and WooCommerce My Account login.wp-login.php; when both passwordless and 2FA apply to the same role, the extra 2FA step after passwordless is omitted.