Skip to content

[FTR] Images, First & Last name, User-Events table#6

Merged
iboshkov merged 6 commits intomainfrom
feature/user-model-images-events
Apr 15, 2026
Merged

[FTR] Images, First & Last name, User-Events table#6
iboshkov merged 6 commits intomainfrom
feature/user-model-images-events

Conversation

@BojanaAri
Copy link
Copy Markdown
Contributor

@BojanaAri BojanaAri commented Apr 13, 2026

This PR extends the user model with the following attributes: First name, Last name, Profile picture.
In addition to handle attendance, I added a user-events many-to-many table that has an additional attribute for attendance status (interested, going, cancelled, attended);

Changes:

  • Profile Update Endpoint PUT /api/profile/update. Validates username uniqueness, name format, and profile picture constraints (10MB max, image-only, and only const ALLOWED_FIELDS = ['username', 'firstName', 'lastName', 'profilePicture'];)
    • Input Sanitization: removes dangerous characters and normalizes user inputs (trim, lowercase)
    • File Upload Security: Type, size, and existence validation for profile pictures integrated with Strapi's upload plugin
  • Error Handling: Early returns with appropriate HTTP status codes (400 for validation, 500 for system errors)

@iboshkov iboshkov merged commit e4d3629 into main Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants