Hi, I hope anyone has some helpful information about this topic....
I'm currently working with porting several sites to Drupal6, all sites are going to share the same codebase. What I want to achieve is to have a shared userdatabase that works in a way that lets my users log into all the others. I've tried to share the user- (and related) tables, but when a user registered through one of my sites I don't want them to appear as registered users on any of my sites before logging in at least once. Why? A person who registers on computer-related website may not want to be a member of a dating-related site, however, on the other hand, some may...
So, here's my thought:
Is there a way to "share" only the username-, password- and email-fields (fields that can be the same on all sites)? So that users can register through all sites, but are not listed as registered before they have logged in at least once?
I think that the solution would be to somehow generate the user-profile upon first login... but does anyone know how to achieve this?
Thank you
IDmedia.no
Comments
I'm searching through the
I'm searching through the user.module, but can't find the function where Drupal compares the users login-input with the user_table.
When I find that function, I should be able to add some sort of an if-statement that first checks the default user_table and upon fail checks another table at another database, if that also fails it should continue as normal (and output an error with username wrong or not found)...
Please give me some hint, someone has to know where I can find the function.. :/