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

robert castelo’s picture

Status: Active » Closed (works as designed)

That 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.

Bricks and Clicks Marketing’s picture

Status: Closed (works as designed) » Active

That 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.

robert castelo’s picture

Status: Active » Closed (fixed)

You 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!