rcpch / rcpch-audit-engine

Epilepsy12 Audit Platform
https://e12.rcpch.ac.uk/
GNU Affero General Public License v3.0
5 stars 5 forks source link

user account activity tidy remove 2FA device in logs #977

Closed eatyourpeas closed 4 months ago

eatyourpeas commented 4 months ago

Overview

E12 team request ability to remove 2FA devices for users in the UI rather than the admin.

Involved abstracting the user activity summary into a separate partial and rendering above the activity table. Deprecated the duplicate logs_list endpoint

Used the two_factor dependency functions to identify user devices and list them in the new partial, with a button to delete.

In the process I identified a bug in the updated_by/created_by user middleware and fixed it

Code changes

Related Issues

closes #905

eatyourpeas commented 4 months ago

Implementations here:

image image image