-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Labels
Description
📌 Description
Implement functionality to allow users to delete or deactivate their DevSync accounts.
- Delete Account: Permanently removes the user’s account and all associated data.
- Deactivate Account: Temporarily disables the account, preventing login and usage without deleting the data.
🎯 Tasks
Frontend
- Add UI option in the user settings/profile page for Delete and Deactivate account.
- Confirmation modal before performing destructive actions.
- Show clear messaging:
- Deactivate: "Your account will be disabled until reactivated."
- Delete: "Your account and all associated data will be permanently removed."
Backend
- Implement API endpoints:
DELETE /users/{id}→ Permanently delete user and data.PATCH /users/{id}/deactivate→ Mark account as inactive.
- Ensure deactivated users cannot log in until reactivated.
- Add database field
isActiveor similar for tracking account status.
📌 Contribution Level
Level 3 (10 Points)
Estimated Completion: 3–4 days
⚡ Guidelines
- Confirm destructive actions with confirmation modals.
- Ensure deleted accounts remove all personal data (GDPR-safe).
- Keep consistent with platform’s UI theme (TailwindCSS, ShadCN UI, Aceternity UI).
- Only logged-in users can delete/deactivate their own account.
Reactions are currently unavailable