-
Notifications
You must be signed in to change notification settings - Fork 122
Open
Description
when testing for the login password is correct or not
in your code in passport.js file
when using local strategy
you wrote :
const users = await user.findOne({email })
so when you enter wrong password , it generate normally token
i added password and it solved this issue to be like that
const users = await user.findOne({email ,password})
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels