@webtoffee — I’m not sure this is accurate… are you sure? Using this plugin, I exported a test user from one install, and imported it into another, and the password did not work.
When I opened up the CSV and changed the user_pass
for my test user to a plain-text password (instead of the hashed one that gets exported from the DB) it works.
So, the fix would be to code this plugin to add the user_pass
column directly as-is into the database, rather than re-encrypting whatever text is in that column.
If you would like to try this out yourself, please feel free to use this CSV:
ID,user_login,user_pass,user_nicename,user_email,user_url,user_registered,display_name,first_name,last_name,user_status,roles
23,sjf-test-admin,$2y$10$tv5SJHpIYoie9JkaVB0fu.yDzd4OHkDc67WLuaq3d3jZ8rE3ktNqW,sjf-test-admin,[email protected],,7/23/2019 12:51,SJF Test Admin,SJF,Test,,administrator
The hashed password you see there is simply the encryption of the plain-text sjf-test-admin
. If you were to import the above CSV as-is, you would need to use $2y$10$tv5SJHpIYoie9JkaVB0fu.yDzd4OHkDc67WLuaq3d3jZ8rE3ktNqW
as the actual plain-text password, because encrypted it is actually $P$BnpXjlmNRc3UT3XC7RX9iF.4arhpEm/
-
This reply was modified 5 years, 8 months ago by
SJF.
-
This reply was modified 5 years, 8 months ago by
SJF.