Plugin for netz98 Magerun2 to normalize all customer email addresses and passwords
netz98 Magerun2 Plugin for changing the passwords and email-addresses for customer-accounts in bulk.
n98-magerun2 will automatically load the plugins laying under
~/.n98-magerun2/modules (create this folder if it does not exist).
To add this command, simply clone the repository.
git clone firstname.lastname@example.org:bitExpert/magerun2-password-normalizer.git ~/.n98-magerun2/modules/magerun2-password-normalizer
The preferred way of installing
bitexpert/magerun2-password-normalizer is through Composer.
bitexpert/magerun2-password-normalizer as a dev dependency:
composer.phar require --dev bitexpert/magerun2-password-normalizer
This plugin adds the
dev:customer:normalize-passwords command to magerun2.
It is designed to be executed only on development- or test-systems!
You must add --force when you're not in "developer" mode
You should never execute this on a production-system!
You will not be able to recover the old data, unlees you backed them up.
--exclude-emails %@bitexpert.% will result in a query restricted with
WHERE email NOT LIKE '%@bitexpert.%' thus NOT updating the password and email-address all bitExpert accounts.
If you want to exclude multiple "conditions" you can provide them ; separated
This command will also change every email-address for the customer (except exluded).
The default is
(ID) being actually replaced by the customer-entity-ID. If you provide a custom email-mask you must include
--email-mask foo_(ID)email@example.com will result in a query restricted with
WHERE email NOT LIKE '%@bitexpert.%' thus NOT updating the password and email-address all bitExpert accounts
Please feel free to fork and extend existing or add new features and send a pull request with your changes! To establish a consistent code quality, please provide unit tests for all your changes and adapt the documentation.
If you feel that you have something to share, then we’d love to have you. Check out the contributing guide to find out how, as well as what we expect from you.
This plugin is released under the Apache 2.0 license.