Explorar o código

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

Minor improvements on edit link password
Pouria Ezzati %!s(int64=3) %!d(string=hai) anos
pai
achega
0366c643ee
Modificáronse 2 ficheiros con 1 adicións e 3 borrados
  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."),