WP Manifestindependent plugin directory
manifest / security / zaty_wordpress_login_authenticator

Zaty Login Security

WordPressのログインセキュリティを高めるプラグインです。

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/zaty-akiyama/zaty_wordpress_login_authenticator/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

WordPressのログイン時にGoogle Authenticatorを使った二段階認証を実装します

使い方

  1. ログイン後ユーザープロフィールで二段階認証を生成する
  2. 生成したQRコードをGoogle Authenticatorで登録する
  3. 次回ログイン時に二段階認証を求められます

有効化のチェックボックスをオフにすることで、シークレットコードを更新せずに二段階認証を無効化することができます。

二段階認証時に3回間違えると5分間そのIPアドレスはブロックされます。他のユーザーからログインして認証を無効化することでも解除することができます。

注意

二段階認証のシークレットコードを失った場合は、復旧の手段を踏んで復旧作業を行なってください。

使用しているWordPressを管理権限のないサーバーで運用している場合、復旧が困難になります。

シークレットコードを紛失した場合

  • 管理権限のあるユーザーでログインし、シークレットコードを紛失したユーザーのプロフィールページにログイン。ページ下「二段階認証を有効化する」のチェックボックスのチェックを外す。
  • WordPressを運用しているデータベース内のwp_usermetaテーブルの対応UserIDのwp_authenticator_codeを空白にする。
  • functions.phpにて、delete_user_option('authenticator_code',UserID)関数で情報を消す。

以上の方法でシークレットコードを紛失した場合でも復旧することが可能です。

ToDo

  • 二段階認証のシークレットコードを紛失したときのリセットプログラムを作成する