mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-28 23:00:36 +00:00
Making the error message dynamic
This commit is contained in:
@@ -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