PHPackages                             lizardmedia/module-password-migrator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. lizardmedia/module-password-migrator

ActiveMagento2-module

lizardmedia/module-password-migrator
====================================

Lizard Media PasswordMigrator module for migrating passwords from legacy systems to Magento

1.0.7(7y ago)43.9k1MITPHPPHP ~7.1.0

Since May 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/lizardmedia/password-migrator-magento2)[ Packagist](https://packagist.org/packages/lizardmedia/module-password-migrator)[ RSS](/packages/lizardmedia-module-password-migrator/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (3)Versions (9)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/e9c395fed256d267ead3a156c88e274bc0e3e0d0b3197eac56ac7fcd53df082f/68747470733a2f2f706f7365722e707567782e6f72672f6c697a6172646d656469612f6d6f64756c652d70617373776f72642d6d69677261746f722f762f737461626c65)](https://packagist.org/packages/lizardmedia/module-password-migrator)[![Total Downloads](https://camo.githubusercontent.com/f7c729950ba805f7603cb0c221b82e4f4aabb8083624e90b602e41a0982a9fad/68747470733a2f2f706f7365722e707567782e6f72672f6c697a6172646d656469612f6d6f64756c652d70617373776f72642d6d69677261746f722f646f776e6c6f616473)](https://packagist.org/packages/lizardmedia/module-password-migrator)[![License](https://camo.githubusercontent.com/d6f08683385f2f1c010b35424f2115365c50f6ade0ef5d0460c5d1f3e8beb4aa/68747470733a2f2f706f7365722e707567782e6f72672f6c697a6172646d656469612f6d6f64756c652d70617373776f72642d6d69677261746f722f6c6963656e7365)](https://packagist.org/packages/lizardmedia/module-password-migrator)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ba38bed6aec8da2551af7a507992df8c8b3529c59d914d5108c5150f19d9c6d3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c697a6172646d656469612f70617373776f72642d6d69677261746f722d6d6167656e746f322f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lizardmedia/password-migrator-magento2/?branch=master)[![Build Status](https://camo.githubusercontent.com/703523b267c72fdaafad261773c27cb33440f716317f8c51cf555387e2f13d03/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c697a6172646d656469612f70617373776f72642d6d69677261746f722d6d6167656e746f322f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lizardmedia/password-migrator-magento2/build-status/master)

Lizard Media PasswordMigrator Magento2 module
=============================================

[](#lizard-media-passwordmigrator-magento2-module)

A Magento2 module which helps you migrate user passwords when migrating data from an existing e-commerce system.

You have to save old customer passwords (possibly with salt). When a customer fails to log in the module checks if the password provided is correct for the legacy system and saves the password after encypting it using Magento build-in service and logs the customer in.

#### Features

[](#features)

- Allows customers to log into Magento using passwords from legacy e-commerce system
- Saves customers password as build-in Magento password
- Redirects customer to password creation if legacy password does not fit into store password strength/pattern policy with reset password token already generated
- Clears the legacy password table after a year/2 years/never since data migration

Prerequisites
-------------

[](#prerequisites)

- Magento 2.2 or higher
- PHP 7.1

Installing
----------

[](#installing)

You can install the module by downloading a .zip file and unpacking it inside `app/code/LizardMedia/PasswordMigrator` directory inside your Magento or via Composer (required).

To install the module via Composer simply run

```
composer require lizardmedia/module-password-migrator

```

Than enable the module by running these command in the root of your Magento installation

```
bin/magento module:enable LizardMedia_PasswordMigrator
bin/magento setup:upgrade

```

Usage
-----

[](#usage)

#### Implementation of legacy hashing method

[](#implementation-of-legacy-hashing-method)

In order to use the module you are required to create a module dependant on this module and implement the interface

```
\LizardMedia\PasswordMigrator\Api\LegacyEncryptorInterface

```

containing the hashing method for your legacy system.

You have to create a preference using `etc/di.xml` in your custom module for the interface.

#### Adding legacy passwords

[](#adding-legacy-passwords)

To insert legacy passwords you should use

```
LizardMedia\PasswordMigrator\Api\Data\PasswordRepositoryInterface

```

with

```
LizardMedia\PasswordMigrator\Api\Data\PasswordInterface

```

objects.

The aboce are the only to actions required to use the module.

#### Automatic cleanup configuration

[](#automatic-cleanup-configuration)

Each legacy password is removed after being used by the customer. You can configure the module to clean the legacy passwords table after:

- a year
- half a year (default)
- never

The configuration is available in the backend of your site at `Stores->Configuration->Password Migrator`

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).

Authors
-------

[](#authors)

- **Maciej Sławik** - [Lizard Media](https://github.com/lizardmedia)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~13 days

Recently: every ~19 days

Total

7

Last Release

2831d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/68c2484123c5a8f7a80ddce8b9e0f05f75c59739829102299aa6014a2c670c4f?d=identicon)[lizardmedia](/maintainers/lizardmedia)

---

Top Contributors

[![bartoszkubicki](https://avatars.githubusercontent.com/u/20238194?v=4)](https://github.com/bartoszkubicki "bartoszkubicki (3 commits)")[![maciejslawik](https://avatars.githubusercontent.com/u/11910648?v=4)](https://github.com/maciejslawik "maciejslawik (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lizardmedia-module-password-migrator/health.svg)

```
[![Health](https://phpackages.com/badges/lizardmedia-module-password-migrator/health.svg)](https://phpackages.com/packages/lizardmedia-module-password-migrator)
```

###  Alternatives

[hyva-themes/magento2-react-checkout

Highly customizable Magento 2 Checkout, built with React

189169.8k1](/packages/hyva-themes-magento2-react-checkout)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[swissup/module-search-mysql-legacy

Legacy mysql search for magento 2.4

10483.0k](/packages/swissup-module-search-mysql-legacy)[imi/magento2-friendly-captcha

Friendly Captcha integration for Magento2

18116.2k](/packages/imi-magento2-friendly-captcha)[pagbank/payment-magento

PagBank - Payment for Magento and Adobe

2128.3k7](/packages/pagbank-payment-magento)[mage-os/module-inventory-reservations-grid

Add a grid with the list of inventory reservations.

126.8k](/packages/mage-os-module-inventory-reservations-grid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
