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

Create Signup Endpoint #6

Open
biniyam-29 opened this issue Nov 15, 2024 · 0 comments
Open

Create Signup Endpoint #6

biniyam-29 opened this issue Nov 15, 2024 · 0 comments

Comments

@biniyam-29
Copy link

Develop an API endpoint to handle user registration for the application. This endpoint should receive a new user's details (e.g., username, email, password) and store them securely in the database. Ensure that passwords are hashed and sensitive data is properly validated and sanitized. Return appropriate success and error messages to indicate whether registration was successful or if any validation issues were encountered.

Requirements:

  • Validate required fields (e.g., username, email, password).
  • Hash passwords before storing them in the database.
  • Check for existing accounts with the same email to prevent duplicate registrations.
  • Return success message and user ID on successful signup.
  • Return error messages for validation or duplicate account issues
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

No branches or pull requests

1 participant