Support » Fixing WordPress » Registering users silently into DB

  • 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 ))

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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()…..

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Registering users silently into DB’ is closed to new replies.