-3

I just need to get real password (before encrypt) when user is registering. I need to save that password in another table. How I access the real password before encrypt?

The reason for it is, I am doing a research about passwords.

  • 2
    This kind of research is usually done with password lists from known site breaks. Their size guarantees at least some statistical value. What you are trying is not research. Besides that, passwords are not encrypted in WordPress, they are hashed. Encryption is reversible, hashing is not. – fuxia Feb 21 '17 at 8:41
  • grrr, you could have just written "i want to collect emails and passwords" :( It is bad enough that you can get such lists, don't see any reason for us to encourage such a reckless behaviour – Mark Kaplun Feb 21 '17 at 8:44
0

Not sure what research you are doing, but you can hook into user_register and get submitted password using $_POST variable.

0

You can hook into user_register to get the submitted password from the $_POST request:

add_action( 'user_register', 'myplugin_registration_save', 10, 1 );
function myplugin_registration_save( $user_id ) {

    if ( isset( $_POST['password'] ) ) {
       /* do something with $_POST['password'] */
    }

}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.