MongoDB POST ISSUE
Here, I am trying to post to the user database. I am using the saveUser API on the registration page. I have also provided images of the server and error. I have been stuck here for the past few hours. Can anyone tell me what the issue might be?
3 Replies
I don't know much about the stack of technologies you are using, but my guess is that you have registered '/users' to be PUT Method, but from the front-end you are using POST Method
ye u r correct
yes, on screenshot 3, it says
app.put
you're also just straight up saving the password in plaintext, from what the screenshots show
that is a good way to get in big trouble
you have to hash the password using a battle-tested scheme