Skip to content

🔥 The free & Open Source DocuSign alternative

fix: disable otp issue in public signing flow

RaktimaNXG86f0622c4ab7
diff --git a/apps/OpenSign/src/pages/PdfRequestFiles.js b/apps/OpenSign/src/pages/PdfRequestFiles.js
index 44a06b314..eec52bb83 100644
--- a/apps/OpenSign/src/pages/PdfRequestFiles.js
+++ b/apps/OpenSign/src/pages/PdfRequestFiles.js
@@ -1511,7 +1511,17 @@ function PdfRequestFiles(props) {
if (userRes?.data?.result) {
setRes(userRes.data.result);
- await SendOtp();
+ const isEnableOTP = pdfDetails?.[0]?.IsEnableOTP || false;
+ if (isEnableOTP) {
+ await SendOtp();
+ } else {
+ setIsPublicContact(false);
+ setIsPublicTemplate(false);
+ setIsLoading({ isLoad: false });
+ setDocumentId(userRes.data?.result?.docId);
+ getDocumentDetails(userRes?.data?.result?.docId);
+ contactBookId = userRes?.data?.result?.contactId || "";
+ }
} else {
console.log("error in public-sign to create user details");
setIsAlert({