소스 검색

fix: remove check user validation

Pouria Ezzati 3 년 전
부모
커밋
8bfd41299b
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      server/handlers/validators.ts

+ 0 - 2
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."),