mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-21 17:15:10 +00:00
Merge cafbd1d70e into 5eb2fb2ff6
This commit is contained in:
commit
bb3487e556
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ Fabric_Client.newDefaultKeyValueStore({ path: store_path
|
||||||
|
|
||||||
// at this point we should have the admin user
|
// at this point we should have the admin user
|
||||||
// first need to register the user with the CA server
|
// 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) => {
|
}).then((secret) => {
|
||||||
// next we need to enroll the user with CA server
|
// next we need to enroll the user with CA server
|
||||||
console.log('Successfully registered user1 - secret:'+ secret);
|
console.log('Successfully registered user1 - secret:'+ secret);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue