You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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})
The text was updated successfully, but these errors were encountered:
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})
The text was updated successfully, but these errors were encountered: