FAB-7836 Fix "No identity type provided" Error

Fix the following error:
[[{"code":0,"message":"No identity type provided. Please provide identity type"}]]

Change-Id: I5a0b04aadbf87d1661f9605f0eb4ec9b2dbab62a
Signed-off-by: Abdul Rauf <abdulraufmujahid@gmail.com>
This commit is contained in:
Abdul Rauf 2018-01-21 01:22:47 +05:00
parent 5eb2fb2ff6
commit 25f6091b86

View file

@ -53,7 +53,7 @@ Fabric_Client.newDefaultKeyValueStore({ path: store_path
// at this point we should have the admin user
// first need to register the user with the CA server
return fabric_ca_client.register({enrollmentID: 'user1', affiliation: 'org1.department1'}, admin_user);
return fabric_ca_client.register({enrollmentID: 'user1', affiliation: 'org1.department1',role: 'client'}, admin_user);
}).then((secret) => {
// next we need to enroll the user with CA server
console.log('Successfully registered user1 - secret:'+ secret);