Skip to content
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

Why does not it give the result, since both password and hash is also the hash of password!! #111

Open
codeater7 opened this issue Dec 19, 2019 · 1 comment

Comments

@codeater7
Copy link

Screenshot 2019-12-20 at 0 37 16

@Abijeet
Copy link

Abijeet commented Feb 12, 2020

Password should be the unhased value.

So if the password was ABCDEF, and its hash is 123456jdjfkdldlkfkfkfkf. To the compare function we should be passing,

bcrypt.compare( 'ABCDEF', '123456jdjfkdldlkfkfkfkf', ....

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

No branches or pull requests

2 participants