Indicate locked users in Admin Area users list
What does this MR do and why?
Related to #349848 (closed)
A user is locked after 10 failed login attempts. The lock expires after 10 minutes. An Admin can unlock a user from the Rails console or the Admin Area.
Previously there was no indication in the Admin Area user list view that a user is locked. This MR adds a Locked badge next to users that are locked.
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Sign in as an Admin.
- Navigate to
/admin/users. - Click on a user and make note of their username.
- In the Rails console (
bin/rails console) runUser.find_by_username(<Username from step 3>).update_column(:locked_at, DateTime.current). - Navigate back to the listing view. There should be a
Lockedbadge next to the locked user
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Peter Hegman

