Skip to content

Commit 25f6091

Browse files
committed
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>
1 parent 5eb2fb2 commit 25f6091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fabcar/registerUser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Fabric_Client.newDefaultKeyValueStore({ path: store_path
5353

5454
// at this point we should have the admin user
5555
// first need to register the user with the CA server
56-
return fabric_ca_client.register({enrollmentID: 'user1', affiliation: 'org1.department1'}, admin_user);
56+
return fabric_ca_client.register({enrollmentID: 'user1', affiliation: 'org1.department1',role: 'client'}, admin_user);
5757
}).then((secret) => {
5858
// next we need to enroll the user with CA server
5959
console.log('Successfully registered user1 - secret:'+ secret);

0 commit comments

Comments
 (0)