I think it would be helpful to know the IP and user agent of the last login.
This would enable the module to have a block that says "You last logged in from X.Y.Z.A IP address from a browser like this" or "You last logged in from X.Y.Z.A IP address from a browser %useragent_string".
What do you think? If you like the idea I can work on it.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1548168_login_history_more_data_4.patch | 9.83 KB | greggles |
| #3 | 1548168_login_history_more_data_3.patch | 8.08 KB | greggles |
| #2 | 1548168_login_history_more_data.patch | 8.08 KB | greggles |
Comments
Comment #1
gregglesComment #2
gregglesIn addition to the feature, I ended up making a few small cleanups (whitespace, ending comments with a period). I think the biggest changes are to the menu definition so that it will have a description on admin/reports and so that there is a real permission associated with the path instead of "access_arguments" (which seems broken - my guess is only uid 1 could see this before).
Other than that the changes are pretty straightforward toward achieving this feature. Let me know if you have any questions/concerns/areas for improvement.
Comment #3
gregglesThis patch fixes some parse errors in the last caused by copy/paste without cleaning it up.
I haven't actually tested the upgrade path on this...
Comment #4
gregglesOk, one more idea....putting in a block to show your last login time.
Comment #5
gregglesAnd committed - http://drupalcode.org/project/login_history.git/commit/28ccb13