• Hello,

    I am trying to put together a form allowing people to submit information to multiple sources.. one of which is their wordpress blog. I would like to check and make sure that they know the password of the author they are trying to submit as.

    I have found the wp_check_password( $password, $hash, $user_id ) function but need to be able to pull the actual encrypted password to be able to check the two against each other.

    Anyone know how to do this?

    Thank you!

Viewing 1 replies (of 1 total)
  • get_currentuserinfo will dump a bunch of info about the currently logged in user (including their hashed password) into a global variable. You can then use wp_check_password to compare the hash to the plaintext value the user provided.

Viewing 1 replies (of 1 total)
  • The topic ‘How can I check a user's password within code?’ is closed to new replies.