Skip to content

testing password #28

@doha22

Description

@doha22

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})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions