how can i do to make de user insert his pasword and not choose with Drupal, OR, how can i do to make appear the pasword generated by the machine, after the user registration?

Sorry my english is very bad

Comments

Ian Ward’s picture

We did this awhile back for a 4.2 install I think it was...a year ago - http://drupal.org/node/3979 but this is just to print the PW and not to let a user make their own, but they could then login immediately and change it. It prints for user #1 so it's a matter of changing the code so it prints for all users...in the lines mentioned in the RE: to the linked post.

lnx’s picture

i use drupal 4.5, the modific user.module is correct in version 4.5 ??? or only in version 4.2 ?

Ian Ward’s picture

could be just a matter of on line 976 of user.module changing:
if ($account->uid == 1) {

to

if ($account->uid >= 1) {

but maybe this grants privs of user#1 to everyone which you would not want...and then everyone would also get that custom message/email too which could be least of worries...overall I think the function you want to work on begins on line 953.