DEV Community

Discussion on: Different ways for User Authentication & Authorization with NodeJS Part - 1

Collapse
 
rossja profile image
Jason Ross

It looks like your login route never validates the password matched, it appears to simply find a match for the user email that was entered, meaning anyone that knows a valid user email would be able to login as that user regardless of what password they provide?

Collapse
 
lavig10 profile image
Lavish Goyal

Oh yes. While writing this article I forgot to mention the password match and password verification in the login route. Thanks for pointing it out.