You don’t. Look up the user by some identifier (like a username or email address) and then check if the password field matches with password_verify
. You specifically can’t lookup a user by salted password hash, that would defeat the point of salting.
1
solved How can I use bcrypted password in a query?