WordPress.org

Ready to get started?Download WordPress

Forums

Problem with login/register post variables (2 posts)

  1. crosenblum
    Member
    Posted 4 years ago #

    I am creating a plugin, that will synch users between the wp database, and this sql server based database, for this game server.

    So in order to help synch users, i need the clear-text version of the password.

    I have been struggling to grab that via the action/hooks into register_post or wp_login, but they appear not to be available.

    I need clear text, because this game server database has an older and it's own unique php encryption method, which is not possible to change, so i must have access to pwd, and to copy/synch/add/delete users between both databases...

    I did try to use wp-debug to show form/$_POST data, but apparently after login, those are hidden or cleared....So how can i grab the needed data, so i can synch users...

    Any suggestions?

    Thank You...

  2. Mark Barnes
    Member
    Posted 4 years ago #

    You can do this by intercepting the login before it is processed. You could copy the code from my TNG wordpress integration plugin, which syncs user names and passwords between WordPress and another application.

    Basically you hook into wp_authenticate.

Topic Closed

This topic has been closed to new replies.

About this Topic