diff options
author | Pouria Ezzati <ezzati.upt@gmail.com> | 2022-11-10 18:40:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 18:40:37 +0300 |
commit | 0366c643eeee11bae54afa1e58553b904e12a1b3 (patch) | |
tree | 0988f687331a21b277dccef76c8478c3b33d9380 | |
parent | 987bafdf368aea4168477288b6e1f7a428cef27a (diff) | |
parent | 50a01f36ab751f95314dfd48642a5f3abd962afb (diff) |
Merge pull request #654 from thedevs-network/fix/change-link-password
Minor improvements on edit link password
-rw-r--r-- | client/components/LinksTable.tsx | 2 | ||||
-rw-r--r-- | server/handlers/validators.ts | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/client/components/LinksTable.tsx b/client/components/LinksTable.tsx index 0759ec0..d39d4c9 100644 --- a/client/components/LinksTable.tsx +++ b/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]} 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."), |