I have an issue with registering/adding new users and I cannot find a way to resolve it.
When registering a new user through the API call /auth/local/register
(with Postman) I get the following response always, even thought there is no other User
with the same username
(as there is only one user so far):
{
"statusCode": 400,
"error": "Bad Request",
"message": [
{
"messages": [
{
"id": "Auth.form.error.username.taken",
"message": "Username already taken"
}
]
}
],
"data": [
{
"messages": [
{
"id": "Auth.form.error.username.taken",
"message": "Username already taken"
}
]
}
]
}
This happens no matter what I put as a username
. So far I had only two users anyway and I can make sure that the username is not used.
On the console log I get: debug POST /auth/local/register (796 ms) 400
When trying to use the admin panel to add a new User
and try to save the user-data. I get the the following “SERVER ERROR” message and I stay in the same window:
On the User
content-type I have added a few fields name: text
, surname: text
, office: enum
and I registered the first two users.
Then I added a few more fields bio: text
, photo: media
and I cannot register anyone anymore. This fields are not require
d.
After creating the first two users I have added relations to other content types and I might have deleted a few relations to/from other content types.
So I cannot register, neither from the admin panel nor from the REST API.