A
A
AlexRas2017-09-13 13:14:10
MODX
AlexRas, 2017-09-13 13:14:10

How to transfer passwords to yii2 from another database?

Hello, the task is to transfer users from modx revo to yii2.
In modx, the password "111111" looks like this:
wH54PuJD24cuQZaMqGQsMdQcHc0FTdWy+3GrF4S+IUQ=
Salt:
06fe8af71b7103b3d694d941072b71a6
In yii2, the password "111111" looks like this:

$2y$13$p8eCHm/Awp9RkN8MWyXGU.bBPqkaIzfcG44W65zEFbHMZmyVJ1gZi

Modx converts with the following settings:
https://api.modx.com/revolution/2.2/db_core_model_...
Is it possible to somehow reformat hashes from modx so that yii understands them or adjust yii to the necessary hashes.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question