描述
通过“用户”→“个人资料”下的“双重身份验证选项”部分,为您的账户启用和配置一个或多个双重身份验证方式。
- 邮件验证码
- 基于时间的一次性密码(TOTP)
- FIDO 通用第二因素(U2F)
- 备用验证码
- 虚拟方式(仅用于测试目的)
有关更多历史,请参阅这篇文章。
动作和过滤器
以下列出该插件提供的动作和过滤器挂钩:
two_factor_providers
过滤器:将覆盖可用的双重身份验证提供方式,例如电子邮件和基于时间的一次性密码。数组值为双重身份验证方式的 PHP 类名。two_factor_enabled_providers_for_user
过滤器:将覆盖提供给用户启用的双重身份验证方式清单。第一个参数为启用的方式提供类名数组作为值,第二个参数为用户 ID。two_factor_user_authenticated
动作:接收已登录的WP_User
对象作为第一个参数,用在身份验证工作流之后确定登录的用户。two_factor_token_ttl
过滤器:将覆盖生成电子邮件验证码后的过期时间(以秒为单位)。第一个参数接受以秒为单位的时间,并用于验证正在验证的WP_User
对象的 ID。
参与其中
开发工作在 GitHub 上进行。加入 #core-passwords
频道在 WordPress Slack (从这里注册)。
以下是如何开始:
$ git clone https://github.com/wordpress/two-factor.git
$ npm install
然后创建包含建议与更改的拉取请求。
评价
2021年11月25日
This plugin is great for increasing login security by enabling Yubikey 2-Factor Authentication (FIDO U2F), or Time-based One Time Passwords (TOTP). It's very impressive; as if the WordPress devs themselves integrated it. It even lets you create application-specific passwords (so you can log in with a password on the WordPress app).
2021年11月20日
This plugin has a super easy functioning and easy to use interface. This is the best plugin I have found here.
2021年11月15日
Simple and does just what it should do without bloating. Thank you.
2021年11月14日
This plugin is great for providing multiple forms of 2FA.
2021年11月2日
Excellent 2FA plugin for WordPress that does not require a third party. It will work with email, TOTP, hardware key and backup codes. Still a WIP but I see a lot of potential.
2021年10月25日
Massive Error. No support at all, I've been waiting for an answer for over 4 weeks now.
贡献者及开发者
“Two-Factor” 是开源软件。 以下人员对此插件做出了贡献。
贡献者更新日志
查看发布历史记录。