Skip to content

Add the register route for locally register user and test the applicatio #1249

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Deepak-cell311
Copy link

@Deepak-cell311 Deepak-cell311 commented May 15, 2025

Description

This pull request adds a new /register route to allow local user registration (not via third-party auth). It includes the necessary controller logic, model validation, and route integration. Additionally, basic tests have been conducted to ensure the registration flow works as expected.

Related Issues

Closes #1248

Steps to Test

  1. Run the development server : npm run dev

  2. Send a POST request to: http://localhost:3000/api/auth/register

  3. Body payload example (JSON):

    {
       "name": "Test User",
       "email": "[email protected]",
       "password": "test123"
    }
    
    
  4. Check the response and ensure the user is saved to the database.

  5. Try registering with an existing email to test validation.

Screenshots

Before

before

After

Annotation 2025-05-13 221059

Checklist

  • I have tested these changes
  • I have updated the relevant documentation
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the codebase
  • My changes generate no new warnings or errors
  • The title of my pull request is clear and descriptive

@Deepak-cell311
Copy link
Author

Hi @salahlalami
Kindly have a look over and review this PR whenever you have a moment.
Thank you🚀

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.

🔒 Missing Register Functionality or Credentials in Dev Setup – Blocker for New Contributors
1 participant