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(3y ago)11.0k[1 issues](https://github.com/omakazit/m2-disable-customer/issues)OSL-3.0PHP

Since Aug 1Pushed 3y 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 yesterday

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

20

—

LowBetter than 12% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity20

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

1105d 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

[mollie/magento2

Mollie Payment Module for Magento 2

1142.0M17](/packages/mollie-magento2)[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.

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

Magento 2 multi-provider invisible captcha &amp; bot protection (Google reCAPTCHA v2/v3/Enterprise and Cloudflare Turnstile) for form-level and route-level protection

299.6k](/packages/hryvinskyi-magento2-invisible-captcha)[buckaroo/magento2

Buckaroo Magento 2 extension

32426.0k8](/packages/buckaroo-magento2)[loki/magento2-components

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

1015.1k29](/packages/loki-magento2-components)[imi/magento2-friendly-captcha

Friendly Captcha integration for Magento2

19136.4k](/packages/imi-magento2-friendly-captcha)

PHPackages © 2026

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