Skip to content

Conversation

@Kuruyia
Copy link
Collaborator

@Kuruyia Kuruyia commented Feb 19, 2024

This adds a button for user to request their profile to be deleted when editing their profile. A button to log out of the application was also added to the profile page.

If the user is an administrator (checked by looking for a client_admin role in the JWT), a button to access the administration panel is also available in the profile page. This button only redirects to the user deletion page for now, where the administrator can review the users that requested their profile to be deleted, and confirm this action.

@Kuruyia Kuruyia added the enhancement New feature or request label Feb 19, 2024
@Kuruyia Kuruyia self-assigned this Feb 19, 2024
@Kuruyia Kuruyia merged commit 04707ea into main Feb 20, 2024
@Kuruyia Kuruyia deleted the feat/front-profile-deletion branch February 20, 2024 09:07
thomas-mauran pushed a commit that referenced this pull request Feb 24, 2024
* feat(front): add logout button to the profile page

* feat(front): add profile deletion request button

* feat(front): decode the JWT to get admin status

* feat(front): add admin user deletion page

* feat(front): allow admin to delete users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants