Login history
Shows the user's login attempts with dates and the number of different devices used.
FactsheetSupport & admin
- Who uses it
- CadreUnit In-Charge / FMT L1
- How you get here
- Side menu > Login History.
- APIs
- 1 calls today, 1 App Service operations
- Offline
- Cached in pref KEY_LOGIN_HISTORY.
Screens
| Screen | What it does | Source |
|---|---|---|
| Login History | List of login name, Attempted date and Different devices count, with refresh. | app/src/main/java/org/platformcommons/urvi/view/login_history/ |
Rules
Conditions from the code, rewritten as plain decision rules.
| When | Then |
|---|---|
| Refresh is tapped online | Fetch the history again and update the cache. |
| Offline | Show the cached copy. |
API contracts
Each call opens to its use case, headers, request and response bodies, and errors.
| Today: call | Use | Replaced by |
|---|---|---|
GET /rtld/api/dataset/v1/execute?name=PlusOneCadreLoginHistory | Cadre login history. |
| App Service v2: operation | Use |
|---|---|
GET /me/login-history | The signed-in user's login history |
Behaviour notes
Improve in the rewrite
- Show the device name and time of each login.