Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add user data validation in UserController #7

Merged
merged 1 commit into from
May 26, 2024
Merged

Conversation

xuelink
Copy link
Member

@xuelink xuelink commented May 26, 2024

This pull request adds user data validation in the UserController. The create method now checks the age of the user and validates the gender before creating a new user. If the age is less than 13 or the gender is invalid, an error response is returned. This ensures that only valid user data is accepted and stored in the system.

@xuelink xuelink merged commit 5d993b6 into main May 26, 2024
1 check passed
@xuelink xuelink deleted the signingup-data-checks branch May 26, 2024 09:16
@xuelink xuelink self-assigned this May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant