From 73c46a1c07c551a492c9e8e8205998fbe45f7caa Mon Sep 17 00:00:00 2001 From: James S Date: Wed, 7 Jul 2021 07:16:26 -0700 Subject: [PATCH] Updated enrollUser function in write_first_app Doc (#2713) Signed-off-by: becomingmountains --- docs/source/write_first_app.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/write_first_app.rst b/docs/source/write_first_app.rst index c5de36a1a32..4be6d79ab37 100644 --- a/docs/source/write_first_app.rst +++ b/docs/source/write_first_app.rst @@ -293,7 +293,7 @@ to interact with the blockchain network. The section of the application code is // in a real application this would be done only when a new user was required to be added // and would be part of an administrative flow - await registerUser(caClient, wallet, userId, 'org1.department1'); + await registerAndEnrollUser(caClient, wallet, mspOrg1, org1UserId, 'org1.department1'); Similar to the admin enrollment, this function uses a CSR to register and enroll ``appUser`` and store its credentials alongside those of ``admin`` in the wallet. We now have