Forums

user_register hook (3 posts)

  1. BrandonD
    Member
    Posted 3 years ago #

    When someone registers on WordPress I'd like to register that account with a 3rd party application. I'm currently using the user_register hook in my plugin but I am not aware of a way to obtain the password WP generates for the user in order to hash and store it according to my 3rd party application. Any ideas?

    Thanks :)

  2. rwc
    Member
    Posted 3 years ago #

    Same problem here; I add the hook for user_register but since I can only grab the hashed password using get_userdata, I can't store it in my other database (which has a different hashing protocol).

    So, the only way I've figured out to do this is by modifying the core function, which obviously blows.

  3. rwc
    Member
    Posted 3 years ago #

    As an add-on, the only way I've figured out how to do this without butchering the core function wp_insert_user was to add a second parameter, the unhashed password, in the do_action call ... Seems pretty hacky, is there a cleaner way?

    do_action('user_register', $user_id, $unhashed_pass);

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.