描述
前往 [使用者]→[個人資料] 中的 [兩步驟驗證選項],便能為網站帳號啟用及設定一或多個兩步驟驗證方式:
- 透過電子郵件傳送驗證碼
- TOTP 驗證碼 (Time Based One-Time Passwords,以時間為基礎、最通用的演算法)
- FIDO U2F 安全金鑰 (Universal 2nd Factor,通用第二因素)
- 備用驗證碼
- 測試模式 (僅供測試目的使用)
如需進一步瞭解這個外掛的開發沿革,請參閱這篇文章。
Actions & Filters
Here is a list of action and filter hooks provided by the plugin:
two_factor_providers
filter overrides the available two-factor providers such as email and time-based one-time passwords. Array values are PHP classnames of the two-factor providers.two_factor_enabled_providers_for_user
filter overrides the list of two-factor providers enabled for a user. First argument is an array of enabled provider classnames as values, the second argument is the user ID.two_factor_user_authenticated
action which receives the logged inWP_User
object as the first argument for determining the logged in user right after the authentication workflow.two_factor_token_ttl
filter overrides the time interval in seconds that an email token is considered after generation. Accepts the time in seconds as the first argument and the ID of theWP_User
object being authenticated.
參與其中
Development happens on GitHub. Join the #core-passwords
channel on WordPress Slack (sign up here).
以下是如何開始:
$ git clone https://github.com/wordpress/two-factor.git
$ npm install
然後打開拉取請求提供你建議的變更。
評價
2021年8月19日
Потрясающий. Теперь, только если ваш плагин будет совместим с Woocommerce, он будет еще больше
2021年8月12日
We needed a way to verify that a user was allowed to login on behalf of a company, however we had no way to verify that they were still an employee.
We used this plugin with only "Email Authentication" turned on and forced use by all users. This meant that if an employee we restricted access to their business email they would lose access to the system. Great solution.
We would highly recommend this plugin.
2021年7月24日
I tried several free and not-free plugins to get a 2-factor authentication, but this too did not work at all. So far, I got something only from "miniorange-2-factor-authentication". Sometimes, while testing different plugins of this kind, I even ended locked out my website with no chance to log in again. Luckly I was doing all testing on a staging website and I do recommend doing the same with these dangerous plugins (they either do not work at all - as this one - or lock you out). For the paid version of this type of plugin, I also do recommend a full try-before-buy testing, otherwise do forget about them.
2021年6月8日
Best way to implement Two-Factor Authentication. It also supports FIDO, which is the safer method. I installed it on all my WordPress sites.
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
貢獻者及開發者
“Two-Factor” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。
貢獻者修改日誌
檢視發佈記錄。