WordPress.org

Ready to get started?Download WordPress

Forums

Registering users silently into DB (3 posts)

  1. Juandbb
    Member
    Posted 2 years ago #

    Hello,

    I'm developing a wordpress site that is just a part of a bigger website developed with Drupal.

    As I want just one registering form (at the Drupal website) I would like to know when a user arrives to the WordPress site if he/she is logged into the Drupal site (I have that already done) and then register this user using its unique user name and the same password for all them (as I cannot get the password from the Drupal site).

    Is there anyway of registering that user silently and them logging he/she automatically? Or any alternative option you may think about?

    Thank you in advance ))

  2. Nikki Blight
    Member
    Posted 2 years ago #

    I think about the only way to accomplish something like that would be to write a Drupal module that registers the user in WordPress at the same time it registers them in Drupal. That way, while you still have the plain-text version of the password available, you can run it through the wp_hash_password() function and save it in the wordpress database.

    Or alternatively, write a WordPress plugin that forces WordPress to use the same hashing script Drupal does and store the same hash in both databases.

  3. Juandbb
    Member
    Posted 2 years ago #

    Thank you kionae,

    Yes, I think that it's the way to go. I may create a webservice in order to get the data from Drupal website everytime a user register and then I may use wp_create_user() or wp_insert_user().....

Topic Closed

This topic has been closed to new replies.

About this Topic