From 3dcabc57f659ea9e664711a5069e0fa908a04676 Mon Sep 17 00:00:00 2001 From: ngn Date: Sat, 10 Jun 2023 22:17:50 +0300 Subject: Making the error message dynamic --- src/api/routes/auth/register.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api') diff --git a/src/api/routes/auth/register.ts b/src/api/routes/auth/register.ts index f8bc6da2..247fa88f 100644 --- a/src/api/routes/auth/register.ts +++ b/src/api/routes/auth/register.ts @@ -229,7 +229,7 @@ router.post( throw FieldErrors({ password: { code: "PASSWORD_REQUIREMENTS_MIN_LENGTH", - message: req.t("auth:register.PASSWORD_REQUIREMENTS_MIN_LENGTH") + message: req.t("auth:register.PASSWORD_REQUIREMENTS_MIN_LENGTH", { min: register.password.minLength }) } }); } -- cgit 1.5.1