wubinworks/module-disable-change-email 问题修复 & 功能扩展

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

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

wubinworks/module-disable-change-email

最新稳定版本:1.1.0

Composer 安装命令:

composer require wubinworks/module-disable-change-email

包简介

A simple Magento 2 extension that prevents customer from changing account email address. Works for both Frontend and WebAPI area.

README 文档

README

Wubinworks Disable Change Email

Introduction

A simple Magento 2 extension that prevents customer from changing account email address. Suitable for many business environments such as B2B. It is also useful when you have an integration that the account email is used as an identifier in the other systems.

Features

  • Disables/Enables customer's ability to change account email
  • Prevents a hack that can resulting in sending "Email Change Notification" email even the account email is not changed and unintentional logout
  • Works for both Frontend and WebAPI area

Compatibility

This extension does not use preference and template override.

*Note: this extension disables the change email checkbox in frontend customer account editing page. If you are looking for a better UI experience such as removing the change email checkbox or the email input box, you may need to do a theme customization for Magento_Customer::form/edit.phtml template.

Requirements

Magento 2.4

Installation

composer require wubinworks/module-disable-change-email

Configuration

Admin Panel Stores > Configuration > Customers > Customer Configuration > Account Information Options.

  • Disable Change Email: Yes/No

For Developers

If you want to change customer email programmatically in Customer User Context(e.g., in your frontend controller), use \Magento\Customer\Model\Customer instead of \Magento\Customer\Api\CustomerRepositoryInterface. See example.

If you like this extension please star this repository.

You may also like: Disable Customer for Magento 2

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2024-09-13