This was fixed long ago by @blake but in the newest version of discourse, 2.7.0.beta5, again I can’t create active users, without sending confirmation email, with api.
1 Like
Have you checked to see if an inactive user was actually created? It is possible that no user was created and you are getting an inaccurate error message. That is an issue that I saw recently on my own site.
I am able to create an active user on my site with the following curl request. I’ve set $api_key
to a Global All Users API Key:
curl -X POST "http://localhost:3000/users.json" \
-H "Api-Key: $api_key" \
-H "Api-Username: system" \
-H "Content-Type: multipart/form-data;" \
-F "email=activeuser@example.com" \
-F "username=activeuser" \
-F "password=simplepass" \
-F "active=true" \
-F "approved=true"
The expected response for this request is {"success":true,"active":true,"message":"Your account is activated and ready to use."}
1 Like