Linux 软件免费装
Banner图

Brain 2FA

开发者 braintum
更新时间 2026年10月18日 05:11
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

security totp 2fa two-factor authentication authenticator

下载

1.0.1 1.0.2 1.0.3 1.0.4 1.1.0

详情介绍:

Brain 2FA protects WordPress accounts with a second authentication factor. After entering their password, users confirm their identity with a six-digit code from an authenticator app or from their email inbox. Users can also sign in without a password using a passkey. Codes are generated and passkeys are verified on your own server. Brain 2FA does not send any data to third-party services. Features Support Need help? Visit Braintum Support.

安装:

  1. Upload the brain-2fa folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress Plugins screen.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Open Brain 2FA > Settings and enable two-factor authentication.
  4. Configure authentication methods and role requirements as needed.

屏幕截图:

  • Passkey settings: passkey sign-in, passkeys as a second factor, optional passkey-only accounts and the default code method.
  • Enrollment Requirements: choose the roles that must set up two-factor authentication and how many days they have to do it.
  • Trusted Devices: let users skip the code on a trusted browser for a set number of days.
  • Emails: the sign-in code email and nine security alerts, each with editable text.
  • Editing an email: subject and text with placeholders, a live preview and a test email.
  • The Login Security page: a summary of your sign-in protection and your passkeys.
  • Authenticator app setup: scan the QR code or enter the key manually, then confirm with a code.
  • Passkey-only sign-in: turn off password sign-in for your own account.
  • The WordPress login form with the "Sign in with a passkey" button.
  • A passkey as the second step after the password.
  • Authenticator app active, with one-time recovery codes to download and store safely.

升级注意事项:

1.1.0 Adds passkeys (passwordless sign-in, passkeys as a second factor, optional passkey-only accounts; off by default, requires HTTPS), editable emails with placeholders, and a reorganized settings page. 1.0.4 Users past their setup deadline can now sign in and are taken to the setup page instead of being locked out. Adds WooCommerce customer setup, a no-JavaScript code field and verified email setup. 1.0.3 Security hardening: limits failed verification attempts, requires your password to change two-factor settings, and revokes trusted devices on password change. Recommended for all users. 1.0.2 Security fix: prevents reuse of authenticator codes and fixes clock-drift tolerance. Recommended for all users. 1.0.1 Fixes a PHP 8.4 deprecation notice during TOTP verification. 1.0.0 Initial release.

常见问题:

How do users set up two-factor authentication?

Users can open Brain 2FA > Login Security from the WordPress admin area and follow the setup instructions for the configured default method.

Which authenticator apps are supported?

Any app that supports time-based one-time passwords (TOTP), including Google Authenticator, Microsoft Authenticator, Authy, 1Password and Bitwarden.

What happens if a user loses access to their authenticator app?

TOTP users can use a recovery code. Site administrators can also manage setup grace periods from the user profile.

Can I require two-factor authentication for specific roles?

Yes. In Brain 2FA > Settings, select the roles that must use 2FA and set a grace period. Users in those roles get the configured number of days to complete setup. After that, or immediately with a grace period of 0, they can still sign in but are taken to the setup page and cannot use the rest of the site until 2FA is enabled.

Does the plugin support WooCommerce login?

Yes. The plugin supports the standard WooCommerce My Account login form. Customers can set up two-factor authentication from the link on their My Account dashboard.

Can users sign in without a password?

Yes, with passkeys. Enable Passkeys under Brain 2FA > Settings, then each user adds a passkey on their Login Security page (after confirming their password). On the login form they can pick their passkey from the username field or use the Sign in with a passkey button. Because a passkey checks the user's fingerprint, face or device PIN, a passkey sign-in does not ask for a separate verification code.

Do passkeys need HTTPS?

Yes. Browsers only allow passkeys on secure (HTTPS) sites. On a site without HTTPS, the passkey options stay hidden.

Can a passkey be used as the second factor after a password?

Yes. After entering their password, users with a passkey can confirm with it instead of typing a code. A passkey also counts as two-factor authentication for roles that require it, so users can set up 2FA with a passkey alone.

Can users turn off password sign-in?

Yes, if you allow it under Brain 2FA > Settings. Users with a passkey can then turn off password sign-in on their Login Security page, so their account can only be accessed with a passkey. If they lose all their passkeys, an administrator can turn password sign-in back on from the user's profile.

What if a user loses the device with their passkey?

Unless they turned off password sign-in, they can still sign in with their password (and a two-factor code, if they have one) and remove the lost passkey on their Login Security page. Administrators can remove all of a user's passkeys from the user's profile, which also turns password sign-in back on.

Can I change the emails the plugin sends?

Yes. Open Brain 2FA > Settings > Emails to edit the subject and text of the sign-in code email and of each security alert (for example "Two-factor authentication turned on" or "Passkey added"). Click a placeholder such as {user_first_name}, {site_name} or {login_security_url} to insert it; the preview shows the result with sample values. Use Send Test Email to see it in your inbox, and Reset to Default to undo your changes. Emails you have not edited keep following the plugin's translations. The sign-in code email cannot be turned off and must contain {code}, so users can always receive their code. The security alerts can be turned off one by one, but we recommend keeping them: they tell users when someone changes their sign-in settings. Emails are sent as plain text. Under Sender you can set the From name and address; leave them empty to use your site's normal mail settings.

What happens to my data if I delete the plugin?

Deactivating the plugin keeps all settings and every user's setup. Deleting it from the Plugins screen removes everything Brain 2FA stored: settings, email templates, authenticator secrets, recovery codes, trusted devices and passkeys. Users then need to set up two-factor authentication again if you reinstall it. To keep the data when deleting the plugin, add define( 'BRAIN2FA_KEEP_DATA_ON_UNINSTALL', true ); to wp-config.php.

Does Brain 2FA connect to external services?

No. Codes, QR codes and recovery codes are generated on your server, passkeys are verified on your server, and verification emails are sent through your site's normal WordPress mail setup.

Where can I get support?

Visit https://www.braintum.com/support/.

更新日志:

1.1.0 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0