Rows in the users table should have a "created" field, populated automatically each time a user is created. I specifically want this so that I can enhance the notify module to notify admins about new users, but it seems to me that it would be generally useful and thus seems appropriate.

Comments

jik’s picture

I have a patch but I don't know how to submit it here without it getting corrupted. I tried using <pre> but smileys still got interpolated into the patch. If someone could explain to me how to attach files to issues or embed text here without it getting filtered, I'd appreciate it; in the meantime, I've put this particular patch up here.

moshe weitzman’s picture

The newly expanded _user() hook in HEAD version can easily meet your 'notify the admin' need. Marking this one as By Design, until we come up with a use case for storing the user creation time.

dries’s picture

As Moshe pointed out, this problem can be solved using the user API. Nonetheless, one might want to store the 'created' date in the user table for other purposes. The patch looks good but I'd prefer it to be consistent with the node module where we use 'created' and 'changed' instead of 'created' and 'timestamp'.