The Open Source DocuSign Alternative.
TypeScript digital-signaturedocument-signingdocusign-alternativee-signatureesignesignaturenext-authnextjsopen-sourcepades-standardpdfpdf-signpdf-signaturepostgresqlprismaself-hostedsigningtypescript
feat: avoid updating password with existing password
Ephraim Atta-Duncancd1b4796fcbc
diff --git a/packages/trpc/server/profile-router/router.ts b/packages/trpc/server/profile-router/router.tsindex d5d191d6e..76e50473d 100644--- a/packages/trpc/server/profile-router/router.ts+++ b/packages/trpc/server/profile-router/router.ts@@ -40,12 +40,13 @@ export const profileRouter = router({password,});} catch (err) {- console.error(err);+ const errorMessage = (err as { message?: string }).message;throw new TRPCError({code: 'BAD_REQUEST',- message:- 'We were unable to update your profile. Please review the information you provided and try again.',+ message: errorMessage+ ? errorMessage+ : 'We were unable to update your profile. Please review the information you provided and try again.',});}}),