The Open Source DocuSign Alternative.
TypeScript digital-signaturedocument-signingdocusign-alternativee-signatureesignesignaturenext-authnextjsopen-sourcepades-standardpdfpdf-signpdf-signaturepostgresqlprismaself-hostedsigningtypescript
fix: hide account action reauth
David Nguyen4de122f814b4
diff --git a/packages/ui/primitives/document-flow/add-settings.tsx b/packages/ui/primitives/document-flow/add-settings.tsxindex ea962dee5..ce52e03c2 100644--- a/packages/ui/primitives/document-flow/add-settings.tsx+++ b/packages/ui/primitives/document-flow/add-settings.tsx@@ -9,7 +9,11 @@ import { useForm } from 'react-hook-form';import { DATE_FORMATS, DEFAULT_DOCUMENT_DATE_FORMAT } from '@documenso/lib/constants/date-formats';import { DOCUMENT_AUTH_TYPES } from '@documenso/lib/constants/document-auth';import { DEFAULT_DOCUMENT_TIME_ZONE, TIME_ZONES } from '@documenso/lib/constants/time-zones';-import { DocumentAccessAuth, DocumentActionAuth } from '@documenso/lib/types/document-auth';+import {+ DocumentAccessAuth,+ DocumentActionAuth,+ DocumentAuth,+} from '@documenso/lib/types/document-auth';import { extractDocumentAuthMethods } from '@documenso/lib/utils/document-auth';import { DocumentStatus, type Field, type Recipient, SendStatus } from '@documenso/prisma/client';import type { DocumentWithData } from '@documenso/prisma/types/document-with-data';@@ -216,9 +220,9 @@ export const AddSettingsFormPartial = ({</p><ul className="ml-3.5 list-outside list-disc space-y-0.5 py-2">- <li>+ {/* <li><strong>Require account</strong> - The recipient must be signed in- </li>+ </li> */}<li><strong>Require passkey</strong> - The recipient must have an accountand passkey configured via their settings@@ -242,11 +246,13 @@ export const AddSettingsFormPartial = ({</SelectTrigger><SelectContent position="popper">- {Object.values(DocumentActionAuth).map((authType) => (- <SelectItem key={authType} value={authType}>- {DOCUMENT_AUTH_TYPES[authType].value}- </SelectItem>- ))}+ {Object.values(DocumentActionAuth)+ .filter((auth) => auth !== DocumentAuth.ACCOUNT)+ .map((authType) => (+ <SelectItem key={authType} value={authType}>+ {DOCUMENT_AUTH_TYPES[authType].value}+ </SelectItem>+ ))}{/* Note: -1 is remapped in the Zod schema to the required value. */}<SelectItem value={'-1'}>None</SelectItem>diff --git a/packages/ui/primitives/document-flow/add-signers.tsx b/packages/ui/primitives/document-flow/add-signers.tsxindex b796f4328..2f9f2f234 100644--- a/packages/ui/primitives/document-flow/add-signers.tsx+++ b/packages/ui/primitives/document-flow/add-signers.tsx@@ -302,10 +302,10 @@ export const AddSignersFormPartial = ({global action signing authentication method configured inthe "General Settings" step</li>- <li>+ {/* <li><strong>Require account</strong> - The recipient must besigned in- </li>+ </li> */}<li><strong>Require passkey</strong> - The recipient must havean account and passkey configured via their settings@@ -326,11 +326,13 @@ export const AddSignersFormPartial = ({{/* Note: -1 is remapped in the Zod schema to the required value. */}<SelectItem value="-1">Inherit authentication method</SelectItem>- {Object.values(RecipientActionAuth).map((authType) => (- <SelectItem key={authType} value={authType}>- {DOCUMENT_AUTH_TYPES[authType].value}- </SelectItem>- ))}+ {Object.values(RecipientActionAuth)+ .filter((auth) => auth !== RecipientActionAuth.ACCOUNT)+ .map((authType) => (+ <SelectItem key={authType} value={authType}>+ {DOCUMENT_AUTH_TYPES[authType].value}+ </SelectItem>+ ))}</SelectContent></Select></FormControl>