外掛說明
前往 [使用者]→[個人資料] 中的 [兩步驟驗證選項],便能為網站帳號啟用及設定一或多個兩步驟驗證方式:
- 透過電子郵件傳送驗證碼
- TOTP 驗證碼 (Time Based One-Time Passwords,以時間為基礎、最通用的演算法)
- FIDO U2F 安全金鑰 (Universal 2nd Factor,通用第二因素)
- 備用驗證碼
- 測試模式 (僅供測試目的使用)
如需進一步瞭解這個外掛的開發沿革,請參閱這篇文章。
動作及篩選器
以下所列為這個外掛提供的動作及篩選器勾點:
two_factor_providers篩選器:這個篩選器會覆寫如電子郵件及 TOTP 等兩步驟驗證功能提供程式。陣列值為兩步驟驗證功能提供程式的 PHP 類別名稱。two_factor_enabled_providers_for_user篩選器:這個篩選器會覆寫已為使用者啟用的兩步驟驗證功能提供程式清單。第一個引數是已啟用的功能提供程式類別名稱值陣列,第二個引數為使用者 ID。two_factor_user_authenticated動作:這個動作會接收已登入的WP_User物件作為第一個引數,用於完成驗證工作流程後立即確定已登入的使用者。two_factor_token_ttl篩選器:這個篩選器會覆寫電子郵件權杖產生後的使用期限 (以秒為單位)。接受第一個引數為以秒為單位的時間間隔設定後,才能驗證WP_User物件的 ID。
參與外掛專案
外掛開發工作均存放在 GitHub。請加入 WordPress Slack 上的 #core-passwords 頻道 (點擊這裡進行註冊)。
外掛安裝指令:
$ git clone https://github.com/wordpress/two-factor.git
$ npm install
然後提交一份包含建議變更的提取要求。
使用者評論
2020 年 9 月 26 日
Love it! Thank you!
2020 年 9 月 19 日
This plugin is working great and was incredibly easy to set up. Excellent work. This is a hugely important project for the entire WordPress community. Thank you!
2Factor is a security standard that everyone should use. With WordPress being used on 30% of websites, having this in WordPress core would be a huge security win for an enormous chunk of the internet.
For some, its existence in core may be their first introduction to 2Factor, which is a huge opportunity to not only be more secure, but to educate people.
Having it in core would also allow for a standard to be set, and for login flows from plugins to utilize 2factor in a reliable way (think logging in over Headless, or though a WooCommerce login-form on a receipt page, etc).
I'm 100% on team lets-get-this-in-core.
2020 年 9 月 18 日
Vielen Dank für dieses ausgezeichnete und nützliche Plugin zum Schutz der Website!
2020 年 9 月 18 日
This plugin supports hardware 2FA, which is rare.
Thanks!
2020 年 9 月 16 日
Supports hardware based keys, is free and works great!
2020 年 9 月 14 日
This is an awesome plugin.
參與者及開發者
以下人員參與了開源軟體〈Two-Factor〉的開發相關工作。
參與者變更記錄
檢視發佈記錄。





