説明
「ユーザー」
「プロフィール」の「Two-Factor 設定」を使い、アカウントに対して1つまたは複数の2要素認証を有効化し、設定してください:- メールコード
- 時間ベースのワンタイムパスワード (TOTP)
- FIDO Universal 2nd Factor (U2F)
- バックアップコード
- ダミーメソッド (テスト用のみ)
詳細な経緯は、この記事を参照してください。
アクション & フィルター
プラグインで提供するアクションフックとフィルターフックは以下のとおり:
two_factor_providers
フィルターフックは、メールや Time Based One-Time Password などの利用可能な2要素認証プロバイダーを上書きします。配列値は、2要素認証プロバイダーの PHP クラス名です。two_factor_providers_for_user
filter overrides the available two-factor providers for a specific user. Array values are instances of provider classes and the user objectWP_User
is available as the second argument.two_factor_enabled_providers_for_user
フィルターフックは、ユーザーに対して有効化している2要素認証プロバイダーの一覧を上書きします。最初の引数は、有効なプロバイダークラス名の配列であり、2番目の引数はユーザーIDです。two_factor_user_authenticated
アクションフックは、認証処理直後に、ログインしたユーザーを判別するための最初の引数として、ログインしたWP_User
オブジェクトを返します。two_factor_email_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.two_factor_email_token_length
フィルターは、メールトークンのデフォルト文字数8を上書きします。two_factor_backup_code_length
フィルターは、バックアップコードのデフォルトの文字数8を上書きします。関連付けられているユーザーのWP_User
を2番目の引数として指定します。
FAQ
-
フィードバックを送信したり、バグに関するサポートを受けるには
-
The best place to report bugs, feature suggestions, or any other (non-security) feedback is at the Two Factor GitHub issues page. Before submitting a new issue, please search the existing issues to check if someone else has reported the same feedback.
-
セキュリティ関連のバグを報告するには
-
The plugin contributors and WordPress community take security bugs seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions.
セキュリティの問題を報告するには、WordPress HackerOne プログラムにアクセスしてください。
評価
貢献者と開発者
Two-Factor はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。
貢献者変更履歴
リリース履歴を参照してください。