소스 검색

Merge pull request #654 from thedevs-network/fix/change-link-password

Minor improvements on edit link password
Pouria Ezzati 3 년 전
부모
커밋
0366c643ee
2개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      client/components/LinksTable.tsx
  2. 0 2
      server/handlers/validators.ts

+ 1 - 1
client/components/LinksTable.tsx

@@ -397,7 +397,7 @@ const Row: FC<RowProps> = ({ index, link, setDeleteModal }) => {
                     {...password({
                       name: "password"
                     })}
-                    placeholder={link.password ? "●●●●●●●" : "Password..."}
+                    placeholder={link.password ? "••••••••" : "Password..."}
                     autocomplete="off"
                     data-lpignore
                     pl={[3, 24]}

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