amupedia2021 / amupedia-web

Source code of the website.
https://www.amupedia.site/
MIT License
158 stars 175 forks source link

Enhancement: Improve Error Handling, Input Validation, and Security in User Routes #620

Open Sameer413 opened 6 months ago

Sameer413 commented 6 months ago

I propose several enhancements to the user routes in our Express.js application to improve error handling, input validation, and security.

Suggestions for Improvement:

Error Handling Improvement: Enhance error messages to provide more descriptive information, giving users a clearer understanding of encountered issues.

Input Validation: Implement robust input validation to ensure that only valid data is accepted by the routes. This includes validating user IDs, passwords, and any other user input.

@anmode , I'm interested in working on this issue. Could you please assign it to me? I'll start working on the suggested enhancements right away. Thank you!

github-actions[bot] commented 6 months ago

Hello @Sameer413! Thank you for raising this issue.

Please make sure to follow our Contributing Guidelines. 💪🏻 Don't forget to ⭐ our Project-Amupedia. 📔

Our review team will carefully assess the issue and reach out to you soon! 😇 We appreciate your patience! 😀

Ja3mamtora commented 6 months ago

@Sameer413 need to check server folder test api and could add input validations is it okay for you ?

amanjaiswal7236 commented 6 months ago

Can I work on this issue??

Ja3mamtora commented 6 months ago

yupp go ahead @amanjaiswal7236

amanjaiswal7236 commented 6 months ago

Can I use Zod for Input validation?