diff options
author | Pouria Ezzati <ezzati.upt@gmail.com> | 2022-11-10 18:33:10 +0300 |
---|---|---|
committer | Pouria Ezzati <ezzati.upt@gmail.com> | 2022-11-10 18:34:14 +0300 |
commit | 8bfd41299bb50026a41cf21cc57b1d97fb051931 (patch) | |
tree | 34b5f43a2248d24765cafc0ff84b0de7edd65735 | |
parent | 987bafdf368aea4168477288b6e1f7a428cef27a (diff) |
fix: remove check user validation
-rw-r--r-- | server/handlers/validators.ts | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/server/handlers/validators.ts b/server/handlers/validators.ts index 7b5015c..9511248 100644 --- a/server/handlers/validators.ts +++ b/server/handlers/validators.ts @@ -147,8 +147,6 @@ export const editLink = [ .withMessage(`${env.DEFAULT_DOMAIN} URLs are not allowed.`), body("password") .optional({ nullable: true, checkFalsy: true }) - .custom(checkUser) - .withMessage("Only users can use this field.") .isString() .isLength({ min: 3, max: 64 }) .withMessage("Password length must be between 3 and 64."), |