承接 warleyelias/customer-login 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

warleyelias/customer-login

最新稳定版本:1.1.1

Composer 安装命令:

composer require warleyelias/customer-login

包简介

The Customer Login module provides the ability lock a customer account in magento 2

README 文档

README

  • When you work on a project, the client requires you to block a customer account from the backend, the client means preventing them from using their account. Then the customer can't be able to log in to their account. By default, Magento hasn't this functionality. You don't know how to complete this task, you are searching for a good solution. Today I show you the best codes to complete your task.

  • We have the scenario: We will create a new customer attribute called "Blocked", it will have two options (Yes/No). If this attribute is set to "Yes" when a customer tries to log in, they will get an inform similar to this "Your account is blocked for the security reason, please contact us for details."

Screenshot

ScreenShot ScreenShot

See the video How to lock a customer account in magento 2 here.

https://www.youtube.com/watch?v=tBGagDLXUAQ&list=PL98CDCbI3TNvPczWSOnpaMoyxVISLVzYQ

How to add a new dynamic row system configuration in the Magento 2 admin.

https://www.youtube.com/watch?v=GZ-I9SdGLT0&list=PL98CDCbI3TNvPczWSOnpaMoyxVISLVzYQ

After instalation execute the query to change the source model to your attribute

UPDATE `eav_attribute` SET `source_model` = 'PHPCuong\\CustomerLogin\\Model\\Customer\\Attribute\\Source\\Reason' WHERE `eav_attribute`.`attribute_code` = 'reason'; This is to not impact when you generate an image that is direct connect to your production BD, so after deploy you need to change the source_model for attribute reason

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固