-
Notifications
You must be signed in to change notification settings - Fork 21
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
Loopback context is cleared on calling bcrypt to compare password #28
Comments
Hi, |
Provided that (It is a fork of This is a common approach. The problem is that If you wish, you could fork And then you could submit a PR to Also, this is less general than the solution I'm working on, but I would find it perfectly fine anyway. But I'm not a community maintainer of |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the |
Bug
My loopback context is lost if I call bcrypt compare function
bcrypt.compare(currentPassword, user.password, function(err, isMatch) {
});
Description of feature (or steps to reproduce if bug)
When I tried to call the bcrypt within any model of my loopback application
Or If I use the inbuilt method to compare password the same thing goes
After a bit research I found the the the internal method of loopback hasPassword for user Model uses the bcrypt library and the same goes there too !
Additional information (Node.js version, LoopBack version, etc)
The text was updated successfully, but these errors were encountered: