PHPackages                             omakazit/m2-disable-customer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. omakazit/m2-disable-customer

ActiveMagento2-module[Authentication &amp; Authorization](/categories/authentication)

omakazit/m2-disable-customer
============================

Disable customer account from admin

1.0.0(2y ago)1900[1 issues](https://github.com/omakazit/m2-disable-customer/issues)OSL-3.0PHP

Since Aug 1Pushed 2y agoCompare

[ Source](https://github.com/omakazit/m2-disable-customer)[ Packagist](https://packagist.org/packages/omakazit/m2-disable-customer)[ RSS](/packages/omakazit-m2-disable-customer/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Omakazit DisableCustomer Extension
==================================

[](#omakazit-disablecustomer-extension)

This Magento 2 extension, designed to enhance the administrative functionality of the platform, provides the capability to disable customer accounts directly from the admin panel. This module aims to streamline account management processes for administrators, ensuring efficient control over customer accounts.

By installing and activating this module, administrators gain access to an additional option within the customer management section of the admin panel. From there, they can conveniently disable a specific customer account with a simple click, restricting the customer's ability to log in, make purchases, or perform any other activities associated with their account.

This module empowers administrators to quickly and effectively handle situations where customer accounts need to be temporarily or permanently deactivated. It offers a user-friendly interface, ensuring ease of use and reducing the time required to perform administrative tasks.

With the ability to disable customer accounts, the module helps maintain security, manage customer interactions, and enforce policies as needed. Whether it's addressing fraudulent activities, handling customer requests for temporary account suspension, or managing other account-related issues, this module provides a valuable tool for administrators to efficiently handle such scenarios.

Overall, this Magento 2 extension enhances the functionality of the admin panel by enabling administrators to disable customer accounts seamlessly. Its streamlined approach to account management promotes effective customer relationship management and ensures a secure and controlled environment for online store operations.

Features
--------

[](#features)

- Disable/Enable Customer Account
    - Customer login is not allowed via storefront or api
- Disable/Enable Customer Account Creation
    - Customer account creation block on login page is removed
    - Customer account creation link in header is removed
    - Customer account creation page redirects to login page

Installation
------------

[](#installation)

```
composer require omakazit/m2-disable-customer
bin/magento set:up
bin/magento indexer:reindex customer_grid

```

Configurations
--------------

[](#configurations)

Go to Stores &gt; Configuration &gt; Omakazit Extensions &gt; Disable Customer

How to disable/enable a customer account
----------------------------------------

[](#how-to-disableenable-a-customer-account)

In the administration panel, select a customer for whom you wish to disable/enable the account. Customer &gt; All customers &gt; Select a customer

On the customer edit page click on the **Account information** tab.

**Disable/Enable** the account using the switch button.

[![Disabled account](doc/img/disabled-account.png)](doc/img/disabled-account.png)

You can view the current account status in the "**Personal information**" section of "**Customer view**" tab.

[![Personal information review](doc/img/personal-information-review.png)](doc/img/personal-information-review.png)

You can also filter accounts in customer grid based on this attribute

Results
-------

[](#results)

### Storefront

[](#storefront)

A customized error message will be displayed when a disabled customer account attempts to login.

To edit error message go to Stores &gt; Configuration &gt; Omakazit Extensions &gt; Disable Customer &gt; Error Message [![Disabled account storefront](doc/img/disabled-account-storefront.png)](doc/img/disabled-account-storefront.png)

### API

[](#api)

The original error message will be displayed when a disabled customer account attempts to login.

```
The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later.

```

Logs
----

[](#logs)

Stores &gt; Configuration &gt; Omakazit Extensions &gt; Disable Customer &gt; Debug Disabling Customer

If debug mode is enabled then logs will be located at var/log/omakazit/disable-customer.log

Requirements
------------

[](#requirements)

- Adobe Commerce/Magento Open Source 2.4.x
- PHP 8.x

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1060d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0fd5cd836dc1a6d104345856f4947f0ac6516a759f9e314417f578192be25453?d=identicon)[ephynensen](/maintainers/ephynensen)

### Embed Badge

![Health badge](/badges/omakazit-m2-disable-customer/health.svg)

```
[![Health](https://phpackages.com/badges/omakazit-m2-disable-customer/health.svg)](https://phpackages.com/packages/omakazit-m2-disable-customer)
```

###  Alternatives

[bitexpert/magento2-force-customer-login

The Force Login module for Magento2 redirects a storefront visitor to the Magento2 Frontend login page, if the visitor is not logged in. It is possible to configure the whitelisted urls to add custom definitions.

169420.0k](/packages/bitexpert-magento2-force-customer-login)[hryvinskyi/magento2-invisible-captcha

Magento 2 Google Invisible Captcha (Recaptcha) module

279.5k](/packages/hryvinskyi-magento2-invisible-captcha)[faonni/module-product-available

Extension allows the store owner to hide the product price and add to cart button from guests or certain customer groups.

3720.1k](/packages/faonni-module-product-available)[sbodak/magento2-b2b-disable-customer-registration

This extension allows you to disable customer registration in your Magento 2.

1415.7k](/packages/sbodak-magento2-b2b-disable-customer-registration)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1010.0k22](/packages/loki-magento2-components)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
