Register user
POST
/api/user/register
Register a new user. This will send an email to the user and to all the administrators. The first registered user will be an active admin, any other account is created with the user role and inactive, waiting for an administrator to confirm it. Any other request body field (in particular role and is_active) is ignored.
Request Body
application/json
JSON "email": "example@gancio.org", "password": "MY_PASSWORD", "description": "A new user for gancio"
{
}
Responses
User has been registered.
application/json
JSON "id": 1, "email": "example@gancio.org", "description": "Example user", "is_active": true, "to_notify": true, "role": "user", "createdAt": "2020-01-29T18:10:16.630Z", "updatedAt": "2020-01-30T22:42:14.789Z"
{
}

