Api_key is not generated after save user with api


#1

Hi,

I wanted to use accounts to create users through the mobile app and called /api/cockpit/saveUser to create a user. But the user object in result doesn’t contain api_key after saving user or calling /api/cockpit/authUser

So after some research I found out that if you add ´api_key:true´ when you register then it generates api_key.

Sample user object

{
	"user": {
            "user": "Test User",
            "name": "TestName",
            "password": "123123",
            "email": "test@invalid.com",    
	    "group": "user",
	    "active": true,
	    "api_key": true
	}
}

I hope this helps anyone who is looking for it.
Thanks