I am in the process of deleting my WordPress website to replace it with a React application. I have several hundred registered users on my wordpress website and I would like to use these credentials on my React application.
The problem is that in the database I have the user passwords generated by WordPress and that I cannot decrypt them… My question is: in my React application how can I use the identifiers and password created under WordPress and stored in my database by deleting my wordpress website? I have already looked at wordpress-hash-node or even md5 but nothing works…
Please help me, I don’t know what to do. Thank you in advance for your help
2
Answers
Its good !!! We adapted the code a bit but it works, thank you again for your help.
Here is the modified code :
You can use an npm library to verify the password hash from WordPress’s
wp_users
table, or from any table containing theuser_login
anduser_pass
column data from that table. This works for me, againstwp_users
on a WordPress 6.1 beta site. So it should be good.You will, of course, have to do this operation in the back end of your React app.
Don’t use that ‘wordpress-password-js’ package to create password hashes. It seems to have far too little randomness in the salt, so the hashes it creates will be too easy to crack. It’s fine for validating them.