chpatrick / labmap-web

6 stars 2 forks source link

Timestamp on finding new user #21

Open tomwilshere opened 12 years ago

tomwilshere commented 12 years ago

If we saved a timestamp when we first saw a user in a location, we could add some information (probably to the user view area) with how long they've been logged in...

May not be useful, but a fun implementation (if I get time!)

petehamilton commented 12 years ago

+1 for this as a feature, but would have to store the values in either a database or some other file format and then some privacy issues might come into play... Worth looking into though.

jamt9000 commented 12 years ago

finger shows the login time, you wouldn't need to create a timestamp

tomwilshere commented 12 years ago

@PeterHamilton Couldn't the timestamp (as @jamt9000 says available from finger) be stored in the json with the user info? This would be cleared when they log out so no issues - Privacy wise... If you refresh regularly enough you can see when someone logs in so more a beneficial thing...

petehamilton commented 12 years ago

The JSON isn't a file I don't think? Isn't it generated dynamically on request?

chpatrick commented 12 years ago

It's a static file updated by a daemon every second or so. :) Sorry for the late response.