Show when a user last logged in #683

Closed
opened 2026-02-04 21:50:36 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @Shackelford-Arden on GitHub (May 18, 2018).

User Management

I'd love to have the ability to at least see when a user last logged in. The purpose of this would be to remove the user and keep things clean in terms of user management. Though, if possible, I'd like the user's name to still show for page author, etc.

Maybe when the user has been deleted, their name simply shows as " (Removed)" or something like that.

Originally created by @Shackelford-Arden on GitHub (May 18, 2018). # User Management I'd love to have the ability to at least see when a user last logged in. The purpose of this would be to remove the user and keep things clean in terms of user management. Though, if possible, I'd like the user's name to still show for page author, etc. Maybe when the user has been deleted, their name simply shows as "<name> (Removed)" or something like that.
OVERLORD added the 🛠️ Enhancement🔒 Security labels 2026-02-04 21:50:36 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jul 1, 2018):

@Shackelford-Arden Thanks for your suggestions.I agree that being able to see the last login time would be really helpful.

In regards to the deletion, Maybe a long-term solution for this would be to add functionality to allow admins to disable user accounts which would prevent logins but would keep references to created items? Would that suit your requirement?

I'll update the issue title to be focused on viewing last login, Let me know on the above and I'll open a new issue specifically for disabling if that solution suits.

@ssddanbrown commented on GitHub (Jul 1, 2018): @Shackelford-Arden Thanks for your suggestions.I agree that being able to see the last login time would be really helpful. In regards to the deletion, Maybe a long-term solution for this would be to add functionality to allow admins to disable user accounts which would prevent logins but would keep references to created items? Would that suit your requirement? I'll update the issue title to be focused on viewing last login, Let me know on the above and I'll open a new issue specifically for disabling if that solution suits.
Author
Owner

@Shackelford-Arden commented on GitHub (Jul 2, 2018):

@ssddanbrown Disabling is an awesome way to do that! I like that. I would wonder if there'd be a way to have views or at least filtering so you can keep the user list clean but still have the option of seeing the disabled users if needed.

Thanks! One of these days I'll figure out enough Laraval/VueJS to add something other than requests lol...

@Shackelford-Arden commented on GitHub (Jul 2, 2018): @ssddanbrown Disabling is an awesome way to do that! I like that. I would wonder if there'd be a way to have views or at least filtering so you can keep the user list clean but still have the option of seeing the disabled users if needed. Thanks! One of these days I'll figure out enough Laraval/VueJS to add something other than requests lol...
Author
Owner

@Cave-Johnson commented on GitHub (Jan 23, 2020):

Would love to see the user last login time added to the admin dashboard. The ability to disable an account as well would be a great security improvement without messing with content

@Cave-Johnson commented on GitHub (Jan 23, 2020): Would love to see the user last login time added to the admin dashboard. The ability to disable an account as well would be a great security improvement without messing with content
Author
Owner

@ssddanbrown commented on GitHub (Nov 22, 2020):

From what I can tell, The original request here was the ability to easily identify inactive users, although the intended method to do so was via visibility of last login.

Using last login alone is a bit complicated, Since the different authentication methods and different session timeouts can result in a questionable figure.

For the next release (v0.31) I have implemented the following:

image

The user list will have a "latest activity" sortable column so you can identify likely inactive users.
Also within the update the tracked activity, which can affect this "Latest Activity" figure is much more extensive and includes admin operations & logins. If you need to specifically look for login events you could still then do this manually via the audit log or database.

Since I believe this solution covers the original ability intent, I'll close this off.

@ssddanbrown commented on GitHub (Nov 22, 2020): From what I can tell, The original request here was the ability to easily identify inactive users, although the intended method to do so was via visibility of last login. Using last login alone is a bit complicated, Since the different authentication methods and different session timeouts can result in a questionable figure. For the next release (v0.31) I have implemented the following: ![image](https://user-images.githubusercontent.com/8343178/99908038-09912f80-2cd8-11eb-80ae-1b82677d4209.png) The user list will have a "latest activity" sortable column so you can identify likely inactive users. Also within the update the tracked activity, which can affect this "Latest Activity" figure is much more extensive and includes admin operations & logins. If you need to specifically look for login events you could still then do this manually via the audit log or database. Since I believe this solution covers the original ability intent, I'll close this off.
Author
Owner

@Cave-Johnson commented on GitHub (Nov 22, 2020):

This looks fantastic, thanks Dan!

@Cave-Johnson commented on GitHub (Nov 22, 2020): This looks fantastic, thanks Dan!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#683