PHPackages                             crt0/lockpanel - 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. crt0/lockpanel

ActiveModule[Authentication &amp; Authorization](/categories/authentication)

crt0/lockpanel
==============

Magento2 module to block administrative panel via API

121PHP

Since Jan 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Cyber-Root0/lock-panel)[ Packagist](https://packagist.org/packages/crt0/lockpanel)[ RSS](/packages/crt0-lockpanel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (1)

---

### Descrição

[](#descrição)

O módulo **CRT0\\LockPanel** foi criado para bloquear o painel administrativo do Magento por meio de endpoints da API REST. Ele permite:

- Bloquear/desbloquear o acesso ao painel.
- Verificar o status de bloqueio.
- Configurar usuários que não serão afetados pelo bloqueio.

---

### Instalação do Módulo

[](#instalação-do-módulo)

1. **Copie os arquivos do módulo para o diretório do Magento:**

    `app/code/CRT0/LockPanel`
2. **Ative o módulo:**

    `bin/magento module:enable CRT0_LockPanel`
3. **Atualize o sistema:**

    `bin/magento setup:upgrade && bin/magento setup:di:compile`

    `bin/magento c:c`
4. **Pronto!** O módulo está instalado.

---

### Configuração

[](#configuração)

1. No painel do Magento, vá para `Stores > Configuration > CRT0 LockPanel`.
2. Configure:
    - **Ativar o Módulo:** Habilite o bloqueio administrativo.
    - **Senha da API:** Defina a senha para acessar os endpoints.
    - **Usuários Isentos:** Selecione usuários que poderão acessar o painel mesmo com o bloqueio.

---

### Endpoints Disponíveis

[](#endpoints-disponíveis)

#### 1. **Bloquear o Painel**

[](#1-bloquear-o-painel)

- **Endpoint:** `POST /rest/V1/lockpanel/lock`
- **Parâmetros (form data):**
    - `password` (obrigatório): Senha configurada no painel.

**Exemplo usando cURL:**

bash

CopyEdit

`curl -X POST "https://sualoja.com/rest/V1/lockpanel/lock" \ -H "Content-Type: application/x-www-form-urlencoded" \ --data-urlencode "password=minhasenhaapi"`

---

#### 2. **Desbloquear o Painel**

[](#2-desbloquear-o-painel)

- **Endpoint:** `POST /rest/V1/lockpanel/unlock`
- **Parâmetros (form data):**
    - `password` (obrigatório): Senha configurada no painel.

**Exemplo usando cURL:**

bash

CopyEdit

`curl -X POST "https://sualoja.com/rest/V1/lockpanel/unlock" \ -H "Content-Type: application/x-www-form-urlencoded" \ --data-urlencode "password=minhasenhaapi"`

---

#### 3. **Consultar Status**

[](#3-consultar-status)

- **Endpoint:** `GET /rest/V1/lockpanel/status`

**Exemplo usando cURL:**

bash

CopyEdit

`curl -X GET "https://sualoja.com/rest/V1/lockpanel/status" \ -H "Content-Type: application/json"`

**Resposta Possível:**

- Painel bloqueado:

    json

    CopyEdit

    `{   "status": "locked" }`
- Painel desbloqueado:

    json

    CopyEdit

    `{   "status": "unlocked" }`

---

---

### Description

[](#description)

The **CRT0\\LockPanel** module was created to lock the Magento admin panel via REST API endpoints. It allows:

- Lock/unlock access to the panel.
- Check lock status.
- Configure users who will not be affected by blocking.

---

### Module Installation

[](#module-installation)

1. **Copy the module files to the Magento directory:**

    `app/code/CRT0/LockPanel`
2. **Activate the module:**

    `bin/magento module:enable CRT0_LockPanel`
3. **Update the system:**

    `bin/magento setup:upgrade && bin/magento setup:di:compile`

    `bin/magento c:c`
4. **Ready!** The module is installed.

---

### Settings

[](#settings)

1. In the Magento dashboard, go to `Stores > Configuration > CRT0 LockPanel`.
2. Configure:
    - **Activate the Module:** Enable administrative blocking.
    - **API Password:** Set the password to access the endpoints.
    - **Exempt Users:** Select users who will be able to access the panel even if blocked.

---

### Testes

[](#testes)

- Use ferramentas como **Postman** ou **cURL** para testar os endpoints.
- Certifique-se de que os parâmetros da senha sejam enviados no formato **form data** para os métodos `POST`.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/77ad0f54ae5c4afcaf7f0e2e0294c6cda040a575a600ffe573b1f7ec0d184eab?d=identicon)[cr0](/maintainers/cr0)

---

Top Contributors

[![Cyber-Root0](https://avatars.githubusercontent.com/u/70926805?v=4)](https://github.com/Cyber-Root0 "Cyber-Root0 (4 commits)")

---

Tags

magentomagento2magento2-extensionmagento2-extension-freemagento2-modulemodule

### Embed Badge

![Health badge](/badges/crt0-lockpanel/health.svg)

```
[![Health](https://phpackages.com/badges/crt0-lockpanel/health.svg)](https://phpackages.com/packages/crt0-lockpanel)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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