ghoster/changecustomerpassword

从管理员端更改客户密码,类似于老式的 Magento 1 方式

1.0.7 2024-05-08 03:26 UTC

This package is auto-updated.

Last update: 2024-09-08 02:23:00 UTC


README

composer require ghoster/changecustomerpassword

在 Magento 2 管理员中实现客户编辑表单以更改客户密码,允许管理员以老式 Magento 1 方式直接更改客户密码。

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require Codacy Badge Donate Build Status

Types of branches

主要功能

  • 在管理员中客户查看页面添加快速更新密码按钮

命令行使用

调用控制台命令并传递客户电子邮件地址和新密码。

bin/magento customer:change-password test@example.com password123

如果客户账户不在网站之间共享,则需要指定网站代码,使用 --website-w 选项。

bin/magento customer:change-password --website base test@example.com password123

使用 Composer 安装

  • 使用 SSH 连接到您的服务器
  • 导航到您的项目并运行以下命令
composer require ghoster/changecustomerpassword


php bin/magento setup:upgrade
rm -rf pub/static/* 
rm -rf var/*

php bin/magento setup:static-content:deploy

不使用 Composer 安装

  • 从 GitHub 下载文件:直接下载链接
  • 解压归档并将所有目录复制到 app/code/GhoSter/ChangeCustomerPassword
  • 转到项目主目录并执行以下命令
php bin/magento setup:upgrade
rm -rf pub/static/* 
rm -rf var/*

php bin/magento setup:static-content:deploy

许可证

开源软件许可证 (OSL 3.0)

捐赠

如果此项目帮助您节省开发时间,您可以给我一杯咖啡:)

paypal