Creating user via API

OK I found this post:

If I do the create/deactivate/activate trick the click here to activate your account button works but I still can’t log in with active=true.