Thursday 26 March 2020

anyone familiar with bcrypt here ?

hello fellas;https://preview.redd.it/cmu4l1tti1p41.png?width=1366&format=png&auto=webp&s=e609ef1cc47e00baf20234846c90985581d83e5cI'm trying to make a signup API and using bcrypt.hash to encrypt my password.however, I am not able to save the new user. I tried to debug the code and send res.json with some dummy data before user.save() and I'm getting back the dummy data.so apparently the bug is in the .save() function as it's always reached the .catch() function and displaying the error.. is there anything wrong with my code?although I literally used the same syntax to other data

Submitted March 26, 2020 at 04:07PM by Sakalalaa

No comments:

Post a Comment