From d407c2f546763142c499bd48e49f609d21dd7ee7 Mon Sep 17 00:00:00 2001 From: Max Campbell Date: Sun, 20 Mar 2022 14:46:16 -1000 Subject: [PATCH] Made changes to validation --- server/src/routes/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/routes/auth.ts b/server/src/routes/auth.ts index 9c646fd5..6701d3c2 100644 --- a/server/src/routes/auth.ts +++ b/server/src/routes/auth.ts @@ -19,7 +19,7 @@ const validateAuthPayload = (username: string, password: string): void => { auth.post( "/signup", celebrate({ - params: { + body: { username: Joi.string().required(), password: Joi.string().required(), }, @@ -57,7 +57,7 @@ auth.post( auth.post( "/signin", celebrate({ - params: { + body: { username: Joi.string().required(), password: Joi.string().required(), },