You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(api): implement safe update logic for user data endpoint
- Prevent privilege escalation by not saving the entire request body
- Perform a partial update of user data, allowing only safe fields to be modified
- Protect critical fields: appRole, dashboardRole, id, createdAt, email
- Allow update of feedActionStatus as it's considered safe user interaction data
- Future-proof the logic for potential safe fields addition
0 commit comments