The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

748 Modules
509 Ready
236 Need Help
🏆 Leaderboard
Stable vv2.2.0

iMi Customer Activation

imi/magento2-customer-activation

Requires admin approval before new customer accounts can log in. Sends notification emails to both the admin and the customer, making it ideal for B2B or private shops.

6,128
Downloads
Below average
2
GitHub Stars
Below average
3mo ago
Last Release
2
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
5 errors , 124 warnings
L1 PHPStan

Tested on Magento 2.4.8-p4

Recent Test History

Each release is tested against the latest Magento version at that time.

vv2.2.0 on Magento 2.4.8-p4
Mar 21, 2026

Share This Module's Status

iMi Customer Activation Magento compatibility status badge

README

Loaded from GitHub

Magento 2 Customer Account Validation

This module is designed to add the possibility for the site owner to manually validate customer accounts at registration. This is useful in cases of B2B or private shops.

Fork

Because the original module is no longer maintained, this module is a hard fork of enrico69/magento2-customer-activation. We aim to maintain it for php 7.4 compatibility and Magento 2.4+ and add functionality.

Prerequesites

This module requires php 7.4 and at least Magento 2.4.

Installation and Update

You can manually download the archive and put its content in the app/code/IMI/Magento2CustomerActivation directory or, the simplest (and recommended) way, install it via composer:

composer require imi/magento2-customer-activation

Whatever method you choosed, activate the module and then run the following command:

bin/magento setup:upgrade
bin/magento indexer:reindex
bin/magento cache:clean

Configuration

In the admin panel, got to Stores > Configuration > Customers > Customer Configuration. Open the Create New Account Options panel and set Customer account need to be activated by an admin user to true for the stores where you want to enable the module. You may set your own email templates.

Email Templates

Account Activated Confirmation Notification

Sent to the customer upon activation. The following variables are provided:

  • email: Customer email address
  • prefix: Customer prefix
  • firstname: Customer firstname
  • lastname: Customer lastname

Admin Notification

Send to the "Sales Representative" after registration/email confirmation. The following variables are provided:

  • customer: The customer object
  • customer_admin_url: Link to the customer in adminhtml
  • formattedShippingAddress: The address set upon registration (if available/configured)

How does it work?

After the activation of the module and once you have set the configuration to require account activation by an admin user, the following process will be followed.

  • At the customer registration, the new customer will be logged-out and a message will notify it that its account is currently waiting for validation.
  • The site owner will receive an email notifying them about a new customer waiting for activation.
  • Until the account is activated by the admin, customers cannot log in.
  • Customers created before the installation are still able to log in and use the site as usual.
  • To make an account active, the site owner has to go to the admin panel, edit the customer account and set this value to true: Account is active.

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.