Title: Cyapico Mail Code Login Gate
Author: cyapico
Published: <strong>November 29, 2026</strong>
Last modified: November 29, 2026

---

Search plugins

![](https://s.w.org/plugins/geopattern-icon/cyapico-mail-code-login-gate.svg)

# Cyapico Mail Code Login Gate

 By [cyapico](https://profiles.wordpress.org/cyapico/)

[Download](https://downloads.wordpress.org/plugin/cyapico-mail-code-login-gate.1.1.6.zip)

 * [Details](https://wordpress.org/plugins/cyapico-mail-code-login-gate/#description)
 * [Reviews](https://wordpress.org/plugins/cyapico-mail-code-login-gate/#reviews)
 *  [Installation](https://wordpress.org/plugins/cyapico-mail-code-login-gate/#installation)
 * [Development](https://wordpress.org/plugins/cyapico-mail-code-login-gate/#developers)

 [Support](https://wordpress.org/support/plugin/cyapico-mail-code-login-gate/)

## Description

Designed for web agencies that manage client sites with external collaborators. 
Administrators link each approved staff or contractor email address to an existing
WordPress account. In all-account mode, each person verifies a six-digit email code
before reaching the standard login form. In selected-role mode, customers and members
can keep their usual login while protected staff verify their email before signing
in.

Cyapico Mail Code Login Gate adds an email-verification step before the standard
WordPress login screen. Site administrators define which email addresses may sign
in to which WordPress accounts. Multiple approved email addresses may map to a single
account if an organization still uses a shared login. Individual accounts remain
preferable for accountability.

 * Six-digit email codes expire in five minutes; a code can be checked once.
 * A verified email is restricted to its mapped WordPress account.
 * Code issuance and attempts to use a verified pass are rate limited through database
   counters.
 * Choose all accounts or selected roles; administrators and accounts with manage_options
   are always protected when enabled.
 * In selected-role mode, members use their usual login and staff open the email
   verification link on wp-login.php.
 * Customize the brand name, theme color and optional Media Library logo on the 
   gate and HTML email; the site title and WordPress blue are defaults.
 * Administrators can review recent security events and revoke all sessions of protected
   accounts.
 * Core password-protected posts and personal-data confirmation links bypass the
   screen gate; account authentication is still protected.
 * Ready for community translation through WordPress.org.

A nonempty mapping enables the protection. Standard XML-RPC authentication and WordPress
application passwords are disabled while the gate is enabled. These API restrictions
are site-wide even in selected-role mode. API-dependent clients and custom login
systems may be incompatible. Selected-role mode does not hide the standard login
screen: the core password check for protected users is gated and successful core
authentication is checked again. Custom authentication that bypasses core hooks 
is not covered. Empty mappings disable the gate. HTTPS is required. Multisite is
not supported. Existing sessions are not automatically removed; administrators can
explicitly revoke protected account sessions. This plugin does not protect against
vulnerabilities in PHP, WordPress, themes or other plugins, compromised email accounts,
or authentication mechanisms implemented outside the normal WordPress APIs. It is
not phishing-resistant authentication. A site-wide sending limit can temporarily
prevent legitimate requests during abuse; retain a recovery channel and use hosting-
level rate limiting.

### 日本語の概要

「ログイン前メール認証」は、WordPressの通常ログインの前に6桁のメール認証コードを
確認します。管理者が、許可するメールアドレスと既存のWordPressアカウントを紐付けます。
HTTPSとWordPressからのメール送信が必要です。

制作会社や保守会社は、外部スタッフごとのメールアドレスを、利用を許可したWordPress
アカウントに紐付けられます。スタッフだけを認証対象にすれば、一般会員は従来どおり
ログインできます。

## Installation

 1. Back up your site and test on a staging copy. Install and activate the plugin.
 2. Verify HTTPS and reliable outbound email delivery. Keep an existing administrator
    session open in one browser.
 3. Open Settings > Login email verification. Enter one email address and existing 
    WordPress username per line, separated by a vertical bar. Include at least one 
    administrator. Select all accounts (default and existing behavior) or selected 
    roles. In selected-role mode, administrators are mandatory and editors are selected
    by default. When WooCommerce is active, shop managers are also selected by default
    if no role selection has been saved. Existing explicit selections are preserved.
    Map every staff account that needs access. Optionally configure branding. Save.
 4. In a separate browser, test authorized and unauthorized addresses, correct and 
    incorrect codes, and the mapped and an unmapped account. Test all password-reset,
    custom login and API workflows relevant to your site. In selected-role mode test
    an ordinary member, a protected staff member with and without a pass, and WooCommerce
    or other member flows on staging. Staff can always start at wp-login.php using 
    the verification link.
 5. Check the security event history. To turn protection off, clear the mapping list
    and save.

## FAQ

### How do I upgrade from an earlier review build?

Keep an administrator session open. If the existing plugin folder is `cyapico-mail-
code-login-gate` (versions 1.1.2 to 1.1.4), update it in place. If the folder is`
mail-code-login-gate` (including version 1.1.5), deactivate the old build, then 
move its folder outside `wp-content/plugins` via SFTP or your host’s file manager.
Install and activate this release, then test staff sign-in. Using the Plugins screen’s
Delete action on the old copy runs its uninstaller and erases the shared settings
and history.

### What if I cannot receive a code?

Check outbound email, spam filtering and rate limits. If you cannot sign in, use
an existing administrator session to correct the mappings. If none is available,
use `wp plugin deactivate cyapico-mail-code-login-gate` from the installation directory,
or rename `wp-content/plugins/cyapico-mail-code-login-gate` over SFTP. Deactivation
removes this additional protection. Re-enable only after correcting the fault.

### What if a staff member leaves?

Remove their email mapping. This invalidates pending verification passes when settings
change; it does not revoke already-issued WordPress authentication cookies. Use 
Settings > Login email verification > Session revocation to end all protected account
sessions, including your own, and invalidate outstanding codes and passes. Confirm
email delivery and recovery access first. This is a bulk operation, not a per-user
control. Concurrent new logins may require a repeat revocation. Rotate shared credentials
as appropriate.

### What data is stored?

Email-to-account mappings, temporary keyed verification records and counters, and
a local history of security events (event and time; successful verification and 
login include the mapped email and user ID; session revocation includes the requesting
administrator ID; failed verification, unregistered address requests, send limits
and delivery failures contain no submitted address or user ID) are stored in the
site. Rate-limit IP identifiers are keyed hashes. Anonymous failure records are 
capped at 120 per event type per hour. The mclg_gate_event action fires for recorded
events with the event name and an array containing happened (Unix timestamp) and
user_id (0 for anonymous failures); no email, IP or authentication secret is passed.
The plugin does not send data to external analytics or developer servers. If a logo
is configured, the HTML email references its media URL; the recipient’s mail client
may fetch or block the image. Email is delivered via the site’s wp_mail configuration
and associated provider. History is scheduled for deletion after 30 days (depends
on WP-Cron) and may be cleared by an administrator. Deactivation preserves settings;
uninstall removes the plugin’s local settings and tables. External object-cache 
verification entries expire by TTL. Cookies contain opaque random tokens, with Secure
and HttpOnly flags, for the short verification flow.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Cyapico Mail Code Login Gate” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ cyapico ](https://profiles.wordpress.org/cyapico/)

[Translate “Cyapico Mail Code Login Gate” into your language.](https://translate.wordpress.org/projects/wp-plugins/cyapico-mail-code-login-gate)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/cyapico-mail-code-login-gate/),
check out the [SVN repository](https://plugins.svn.wordpress.org/cyapico-mail-code-login-gate/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/cyapico-mail-code-login-gate/)
by [RSS](https://plugins.trac.wordpress.org/log/cyapico-mail-code-login-gate/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.6

 * Use the confirmed WordPress.org slug cyapico-mail-code-login-gate for translations
   and installation.

#### 1.1.5

 * Align the plugin folder, main file and translation text domain with the mail-
   code-login-gate directory slug.

#### 1.1.4

 * Keep uninstall cleanup variables local.

#### 1.1.3

 * Refined form input validation and use of the login action resolved by WordPress.

#### 1.1.2

 * Updated the plugin name and described agency workflows. Translations are now 
   delivered through WordPress.org.

#### 1.1.1

 * Load the verification screen stylesheet through the WordPress styles API.

#### 1.1.0

 * Exempt core postpass and confirmaction screens without bypassing authentication
   hooks.
 * Include WooCommerce shop managers in unsaved default role selections.
 * Add nonce-protected bulk session revocation and invalidate outstanding verification
   passes.
 * Record bounded anonymous failure events and emit the mclg_gate_event action.

#### 1.1.0-rc2

 * Add selected-role mode, core pre-password enforcement and configurable branding.
 * Preserve existing all-account mode and site-wide API restrictions.

#### 1.1.0-rc1

 * Pre-release candidate: email/account bindings, atomic attempt counters, API restrictions,
   local history, internationalization and recovery documentation.

## Meta

 *  Version **1.1.6**
 *  Last updated **48 minutes ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.2 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 8.2 or higher **
 * Tags
 * [access-control](https://wordpress.org/plugins/tags/access-control/)[authentication](https://wordpress.org/plugins/tags/authentication/)
   [email verification](https://wordpress.org/plugins/tags/email-verification/)[login security](https://wordpress.org/plugins/tags/login-security/)
   [shared accounts](https://wordpress.org/plugins/tags/shared-accounts/)
 *  [Advanced View](https://wordpress.org/plugins/cyapico-mail-code-login-gate/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/cyapico-mail-code-login-gate/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/cyapico-mail-code-login-gate/reviews/)

## Contributors

 *   [ cyapico ](https://profiles.wordpress.org/cyapico/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/cyapico-mail-code-login-gate/)