When I try to receive the token with $ curl -X POST -H “Content-Type: application/json” http://localhost:8000/api/login_check -d ‘{“username”:”username”,”password”:”password”}’ I alway get{“code”:401,”message”:”Bad credentials”} (I placed the information of the registered user in the database; for username — the email, and for password — the password); any ideas? (The url is from my project)

Written by

Developer Evangelist at Codefresh, 3 years crypto now DevOps Personal blog.anaisurl.com | More on GitOps codefresh.io/gitops/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store