描述
前往“用户”→“我的个人资料”,到“双重认证选项”下为您的帐户启用一个或多个双重认证方式:
- 邮箱验证码
- 基于时间的一次性密码(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年4月15日
I did not try any other plugin, I will stick with this one. It is very simple yet great. You can get code to your email address or use the one on the authentication app you use, or do both. very simple and easy to use and great.
2021年3月19日
Really this plugin is Awesome & Easy to Integrate with WP. Thank You
2021年3月15日
I am using it and I can confirm it works in WordPress 5.7. The best free 2FA plugin with support for hardware security keys!
2021年3月9日
Very useful!
2021年3月7日
Thanks for this plugin, efficient to bring more security to WordPress.
2021年2月27日
Works like a charm out of the box. My Yubikey worked immediately. Zero issues.
贡献者及开发者
“Two-Factor” 是开源软件。 以下人员对此插件做出了贡献。
贡献者更新日志
查看发布历史记录。