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

POST | /login #15

Closed
ameera-abed opened this issue Oct 25, 2021 · 0 comments · Fixed by #33
Closed

POST | /login #15

ameera-abed opened this issue Oct 25, 2021 · 0 comments · Fixed by #33

Comments

@ameera-abed
Copy link
Contributor

ameera-abed commented Oct 25, 2021

login by email and password

Description
When a new user signs up on the site it has to insert a new user into the database with validated data and hashed password.

Protected: Yes

Required middleware's: isUser


Response:

Error :

    {
        status : 401,
        message : 'Unauthorized'
    }

Request body

req.body={
email,
password
}

Success

 [
     status: 200,
     message: 'You are logged successfully',
     ]
 }

Tests: test all potential causes for the route itself.
dex.js

mohammedsalah7 pushed a commit that referenced this issue Oct 28, 2021
mohammedsalah7 pushed a commit that referenced this issue Oct 28, 2021
mohammedsalah7 pushed a commit that referenced this issue Oct 29, 2021
mohammedsalah7 pushed a commit that referenced this issue Oct 30, 2021
mohammedsalah7 pushed a commit that referenced this issue Oct 31, 2021
@mohammedsalah7 mohammedsalah7 linked a pull request Oct 31, 2021 that will close this issue
ElhamFadel added a commit that referenced this issue Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants