Closed thinkharderdev closed 4 years ago
curl -XPOST -H "content-type: application/json" -d '{"user_name" : "david", "password" : "davidrulz", "role_id" : "4", "role" : "navigator", "is_admin": true}' http://localhost:5000/auth/register
Are you still getting this. It is working for me.
curl -XPOST -H "content-type: application/json" -d '{"user_name" : "david", "password" : "davidrulz", "role_id" : "4", "role" : "navigator", "is_admin": true}' http://localhost:5000/auth/register
{
"jwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1ODY2MjUxMDAsInVpZCI6ImQzNjc2ZDU5LWJkNmQtNGVmOS1hMWM2LTQ4Yjk3ZTMyMzUxMCIsInJvbGUiOiJuYXZpZ2F0b3IifQ.nlLbFBEqZYP939kf7LvvwbCJVTqzwS5hTHNcLqe0VVM"
}
@thinkharderdev looks great! I am able to make a user now. I think my psql must have cached some data (?) because it works when I drop all the tables and reset everything.
Can you merge your branch with code-for-charlottesville:master
? We should be able to test this with the UI. I think the only change we should need is changing username
to user_name
in the UI.
Highlights