mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 02:13:00 +00:00
Making the error message dynamic
This commit is contained in:
1 parent
9efe160340
commit
3dcabc57f6
2 files changed
+2
-2
No files matched your search
@@ -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 })
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user