Closed (works as designed)
Project:
Drupal core
Version:
4.3.1
Component:
user.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Dec 2003 at 20:55 UTC
Updated:
22 Dec 2003 at 11:11 UTC
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
Comment #1
jik commentedI 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.
Comment #2
moshe weitzman commentedThe 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.
Comment #3
dries commentedAs 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'.