i also have same issue, i installed flarum locally, and its working , I can get token using this URL http://localhost/forum/public/api/token
{
"identification" : "admin",
"password": "1234"
}
But
when I try to create user using this API http://localhost/forum/public/api/users and header also include token that I get from the previous request. and here is body
{
"data" : {
"attributes" : {
"username" : "test3",
"password" : "12345678",
"email" : "test3@gmail.com"
}
}
}
user created in database successfully
But I got 500 status code
{
"errors": [
{
"status": "500",
"code": "unknown"
}
]
}
this is response I got after posting new user.
what should I do?
any suggestions will be appreciated,
thank you. 🙂