Closed (fixed)
Project:
User Import
Version:
6.x-2.4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Sep 2011 at 15:46 UTC
Updated:
24 Sep 2012 at 01:35 UTC
I'd like imported users to start off with the same password, which will be required to be changed upon first login. This makes sense for large imports - it's easier to handle 500+ support requests if we don't have to lookup or recreate a new password for each of them.
I'm assuming I have to hack the module to do this - any suggestions before I go ahead with that?
Comments
Comment #1
robert castelo commentedThat would make password kind of pointless as anyone can look up anyone else's username and then log in with the same password.
If you really need to do it either change it in the database directly, but be sure to use an MD5 hash of the password rather than the password in clear text, or use the User Import API to hardcode the password.
Comment #2
Bricks and Clicks MarketingThat was my point too - I'm not in favor of making the same password for everyone, but I don't make the decisions here :/
I'll check the examples and hope I can figure it out today. If you can point me to what lines to look at to save time, I'd appreciate it.
Comment #3
robert castelo commentedYou can do this when you set up the import....
Set a column in your csv file to hold all the passwords, in this case all the same.
Set the Password column to match Drupal's password field when you set up the import.
Done!