mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-21 17:15:10 +00:00
Merge a9f584a5eb into 1252c7a0ee
This commit is contained in:
commit
08b88b6e6c
1 changed files with 2 additions and 0 deletions
|
|
@ -92,6 +92,8 @@ var getRegisteredUser = async function(username, userOrg, isJson) {
|
||||||
}, adminUserObj);
|
}, adminUserObj);
|
||||||
logger.debug('Successfully got the secret for user %s',username);
|
logger.debug('Successfully got the secret for user %s',username);
|
||||||
user = await client.setUserContext({username:username, password:secret});
|
user = await client.setUserContext({username:username, password:secret});
|
||||||
|
user._enrollmentSecret = secret;
|
||||||
|
await client.setUserContext(user);
|
||||||
logger.debug('Successfully enrolled username %s and setUserContext on the client object', username);
|
logger.debug('Successfully enrolled username %s and setUserContext on the client object', username);
|
||||||
}
|
}
|
||||||
if(user && user.isEnrolled) {
|
if(user && user.isEnrolled) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue