Hi, if you are migrating from WordPress to Yii2, and want to maintain existing user base with passwords, then you will probably need this small script.
I have published it on Github wordpressToYii2PasswordMigrate.
This script will check, to see if user has Yii2 password hash or WordPress one. Check is based on password_hash length. If password_hash is not 60 characters, then system tries to validate password via WordPress functions. And if succeed, it will then convert the raw password into Yii2 password hash, generate and auth_key and save into database. So that after first log-in, users will have Yii2 password hash.