Making the error message dynamic

This commit is contained in:
ngn committed 2023-06-10 22:17:50 +03:00
1 parent 9efe160340
commit 3dcabc57f6
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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 })
}
});
}