Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Vinai/module-customer-password-command
Set a customer password with bin/magento.
https://github.com/Vinai/module-customer-password-command
Last synced: 3 months ago
JSON representation
Set a customer password with bin/magento.
- Host: GitHub
- URL: https://github.com/Vinai/module-customer-password-command
- Owner: Vinai
- Created: 2017-08-18T12:16:28.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-15T09:11:55.000Z (over 2 years ago)
- Last Synced: 2024-05-17T13:33:55.276Z (6 months ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 27
- Watchers: 5
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Set a customer password
Since Magento 2 no longer provides facilities to set a customers password, this command can come in handy during development when working with testing customer accounts.
## Installation
```bash
composer config repositories.vinaikopp-customer-password-command vcs https://github.com/Vinai/module-customer-password-command.git
composer require vinaikopp/module-customer-password-command:dev-master
bin/magento setup:upgrade
```## Usage
Call the command and pass the customers email address and the new password.
```bash
bin/magento customer:change-password [email protected] password123
```If customer accounts are not shared between websites, a website code has to be specified with the `--website` or `-w` option.
```bash
bin/magento customer:change-password --website base [email protected] password123
```