summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorngn <ngn13proton@proton.me>2023-06-10 22:17:50 +0300
committerngn <ngn13proton@proton.me>2023-06-10 22:17:50 +0300
commit3dcabc57f659ea9e664711a5069e0fa908a04676 (patch)
tree71f33f6c766c06ed3c28209a6fa6dd6d0c23fb96 /src
parentmaking min password length configurable (diff)
downloadserver-3dcabc57f659ea9e664711a5069e0fa908a04676.tar.xz
Making the error message dynamic
Diffstat (limited to 'src')
-rw-r--r--src/api/routes/auth/register.ts2
1 files changed, 1 insertions, 1 deletions
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 })
                                         }
                                 });
                         }