Skip to content

Commit 33cb9b8

Browse files
committed
Merge branch 'master' into fix-updated-maestro-to-work-with-new-sdk
2 parents b78e1f5 + 5a7323f commit 33cb9b8

File tree

12 files changed

+1491
-783
lines changed

12 files changed

+1491
-783
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# Node.js Launcher Code Examples
22

3+
>
4+
>### PLEASE! Share your feedback in a [two-question survey](https://docs.google.com/forms/d/e/1FAIpQLScPa74hwhJwi7XWDDj4-XZVOQTF9jJWgbIFEpulXokCqYWT4A/viewform?usp=pp_url&entry.680551577=Node.js).
5+
>
6+
>
37
### GitHub repo: [code-examples-node](./README.md)
48

5-
This GitHub repo includes code examples for the Docusign Admin API, Click API, eSignature REST API, Monitor API, and Rooms API. By default, the launcher will display the eSignature examples. To switch between API code examples, select "Choose API" in the top menu.
6-
9+
This GitHub repo includes code examples for the [Web Forms API](https://developers.docusign.com/docs/web-forms-api/), [Maestro API](https://developers.docusign.com/docs/maestro-api/), [Docusign Admin API](https://developers.docusign.com/docs/admin-api/), [Click API](https://developers.docusign.com/docs/click-api/), [eSignature REST API](https://developers.docusign.com/docs/esign-rest-api/), [Monitor API](https://developers.docusign.com/docs/monitor-api/), and [Rooms API](https://developers.docusign.com/docs/rooms-api/).
710

811
## Introduction
912

@@ -143,4 +146,4 @@ This repository uses the MIT License. See [LICENSE](./LICENSE) for details.
143146

144147
### Pull Requests
145148
Pull requests are welcomed. Pull requests will only be considered if their content
146-
uses the MIT License.
149+
uses the MIT License.

lib/eSignature/controllers/eg020PhoneAuthentication.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,16 @@ eg020PhoneAuthentication.createController = async (req, res) => {
5252
accountId: req.session.accountId, // represents your {ACCOUNT_ID}
5353
envelopeArgs: envelopeArgs
5454
};
55+
56+
if (dsConfig.signerEmail === args.envelopeArgs.signerEmail) {
57+
return res.render('pages/error', {
58+
errorCode: 400,
59+
errorMessage: res.locals.manifest.SupportingTexts.IdenticalEmailsNotAllowedErrorMessage,
60+
});
61+
}
62+
5563
let results = null;
5664
const example = getExampleByNumber(res.locals.manifest, exampleNumber, api);
57-
5865
try {
5966
// Step 2: Call the api method
6067
results = await phoneAuthentication(args);

lib/eSignature/controllers/eg022KbaAuthentication.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ eg022KbaAuthentication.createController = async (req, res) => {
4949
};
5050
let results = null;
5151

52+
if (dsConfig.signerEmail === args.envelopeArgs.signerEmail) {
53+
return res.render('pages/error', {
54+
errorCode: 400,
55+
errorMessage: res.locals.manifest.SupportingTexts.IdenticalEmailsNotAllowedErrorMessage,
56+
});
57+
}
58+
5259
try {
5360
// Step 2: Send the envelope
5461
results = await kbaAuthentication(args);

lib/eSignature/controllers/eg023IdvAuthentication.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,16 @@ eg023IdvAuthentication.createController = async (req, res) => {
5050
accountId: req.session.accountId, // represents your {ACCOUNT_ID}
5151
envelopeArgs: envelopeArgs
5252
};
53+
54+
if (dsConfig.signerEmail === args.envelopeArgs.signerEmail) {
55+
return res.render('pages/error', {
56+
errorCode: 400,
57+
errorMessage: res.locals.manifest.SupportingTexts.IdenticalEmailsNotAllowedErrorMessage,
58+
});
59+
}
60+
5361
let results = null;
5462
const example = getExampleByNumber(res.locals.manifest, exampleNumber, api);
55-
5663
try {
5764
// Step 2: Call the api method
5865
results = await idvAuthentication(args);

0 commit comments

Comments
 (0)