Skip to content

Issue165: auth/login route not working #185

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

Closed
wants to merge 3 commits into from
Closed

Issue165: auth/login route not working #185

wants to merge 3 commits into from

Conversation

pragun22
Copy link
Contributor

@pragun22 pragun22 commented Apr 16, 2019

Problem

data.compare was not working in login.routes.js

Issue this PR referred to

Fixes issue number #165 , Refer to this link for more details_

Solution of problem

Compare was not working as data received is in the form of struct and .compare does not work for them. So I replaced it with a "==" operator to compare passwords of both structs.

Before and After Screenshots

error/problem

Screenshot from 2019-04-17 01-53-38

output of request after solving the problem

Screenshot from 2019-04-17 01-59-51

Screenshot from 2019-04-17 01-59-46

Type of Change

  • Small refactor

Checklist

  • My code follow the same style as the codebase
  • My Code changed required change in documentation
  • I have updated the Readme accordingly
  • I made PR within development branch only

@TG1999
Copy link
Member

TG1999 commented Apr 17, 2019

Okay I will test the route with your code once @pragun22 if it's good their I will tell here. 😄 .If you have tested the route already then please tell .

@pragun22
Copy link
Contributor Author

@TG1999 I have done some basic testing like just sending a request with headers through postman(screenshot is attached in the PR) and npm request, you can do deep testing of the route.

@TG1999
Copy link
Member

TG1999 commented Apr 17, 2019 via email

@prateekiiest
Copy link
Contributor

@pragun22 , before anything else, please rename your PR and follow the best practices of PR naming.

@pragun22 pragun22 changed the title Issue165 Issue165: auth/login route not working Apr 17, 2019
@pragun22
Copy link
Contributor Author

@prateekiiest thanks for the feedback, I have changed PR name. kindly check if it is alright.

@TG1999
Copy link
Member

TG1999 commented Apr 17, 2019

#185 (comment)
I can do testing only after the commit gets merged @pragun22 so let's mentor have a look on it. Then I will test this route.😃

@TG1999
Copy link
Member

TG1999 commented Apr 28, 2019

@pragun22 please make different branch for solving different issues.

@vaibhavdaren
Copy link
Member

why 3 commits ?

@pragun22
Copy link
Contributor Author

pragun22 commented May 3, 2019

@vaibhavdaren I may have mixed some branches(sorry for that),
Yeah, @TG1999 I will be making new PR with a different branch.
For now, I am closing this PR

@pragun22 pragun22 closed this May 3, 2019
vaibhavdaren added a commit that referenced this pull request May 4, 2019
Issue165: auth/login route not working #185
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.

4 participants