From WordPress to Yii2 password hash migration

  • Sumo

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.

About the Author

Edgar Marukyan is an expert of website development and performance optimization, who maintains and consults clients with high load traffic websites.. If you need an assistance, feel free to drop me a line.         Website - Twitter - Facebook

Leave a Reply

If you want a picture to show with your comment, go get a Gravatar.