Closed supracia closed 6 years ago
Please pass body as json parameter: { "username":"test", "password":"testpass" }
You are passing as form-url-encode instead use JSON format.it will work
Thank you for the answear, it resolved that problem. But now it's showing this errors. Is it because of the connection to the database or did I not created the table correctly?
sorry my bad i have forgotten to add in ReadMe file , first there is a signup
route which will ask for username and password and convert your password in encrypted pass and save in DB , later when you call login
route and give username and password it will bring DB password for specific id and decode and check whether is correct or not. so if you are saving manually it wont work. i hope you get it. @supracia
Oh of course, by bad sorry. Thank you!
Everytime I try to login in Postman it returns this JSON:
I'm using MySQL database that I created manually like this:
Here is a printscreen of how I am using it on Postman:
Can someone help me out please?