From 8bfd41299bb50026a41cf21cc57b1d97fb051931 Mon Sep 17 00:00:00 2001 From: Pouria Ezzati Date: Thu, 10 Nov 2022 19:03:10 +0330 Subject: fix: remove check user validation --- server/handlers/validators.ts | 2 -- 1 file changed, 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."), -- cgit v1.2.3 From 50a01f36ab751f95314dfd48642a5f3abd962afb Mon Sep 17 00:00:00 2001 From: Pouria Ezzati Date: Thu, 10 Nov 2022 19:07:40 +0330 Subject: style: use password dot unicode character for password placeholder --- client/components/LinksTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ({ index, link, setDeleteModal }) => { {...password({ name: "password" })} - placeholder={link.password ? "●●●●●●●" : "Password..."} + placeholder={link.password ? "••••••••" : "Password..."} autocomplete="off" data-lpignore pl={[3, 24]} -- cgit v1.2.3