From 884aed74a52b3d5e32440c1ab5a3a0c7f8c256ed Mon Sep 17 00:00:00 2001 From: Sheen Capadngan Date: Mon, 15 May 2023 20:39:45 +0800 Subject: [PATCH] made last name optional --- backend/src/routes/v3/signup.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/routes/v3/signup.ts b/backend/src/routes/v3/signup.ts index 52cf4899e..b2fb4af81 100644 --- a/backend/src/routes/v3/signup.ts +++ b/backend/src/routes/v3/signup.ts @@ -10,7 +10,7 @@ router.post( authLimiter, body('email').exists().isString().trim().notEmpty().isEmail(), body('firstName').exists().isString().trim().notEmpty(), - body('lastName').exists().isString().trim().notEmpty(), + body('lastName').exists().isString().trim().optional({nullable: true}), body('protectedKey').exists().isString().trim().notEmpty(), body('protectedKeyIV').exists().isString().trim().notEmpty(), body('protectedKeyTag').exists().isString().trim().notEmpty(), @@ -21,6 +21,7 @@ router.post( body('salt').exists().isString().trim().notEmpty(), body('verifier').exists().isString().trim().notEmpty(), body('organizationName').exists().isString().trim().notEmpty(), + body('providerAuthToken').isString().trim().optional({nullable: true}), validateRequest, signupController.completeAccountSignup, );