magezil/module-site-restrict 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

magezil/module-site-restrict

最新稳定版本:1.0.0

Composer 安装命令:

composer require magezil/module-site-restrict

包简介

Custom Module to redirect to login or forgot password if customer is not logged in.

README 文档

README

Description

Adobe Commerce custom module to redirect non-logged-in customers to the login page. With access to the forgot password and customer registration pages (whether these paths are selected in the admin settings).

Installation

To download the module by composer, execute this code bellow:

composer require magezil/module-site-restrict

After installing the module it is necessary to execute the following commands:

bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:clean
bin/magento cache:flush

System Requirements

Magento 2 requires at least: 2.4.X

Magento 2 Tested up to: 2.4.6

Requires PHP: 8.1

Admin

Settings

To configure the module, go to the Magento admin area and follow the steps below:

Stores > Configuration > Magezil > Site Restrict > General

Enabled Module: Enable/Disable module site restriction functionality. Available Paths: Select the paths that are available to non-logged-in customers.

Note: The list of controllers should be specified as a comma-separated string, without leading or trailing spaces.

ScreenShot

Site

Feature

The module includes a controller validation observer that runs whenever a controller is loaded. This observer checks if the current controller is in the list of valid controllers defined in the module's configuration. If the controller is not in the list, the observer redirects the user to login page.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2023-05-13