Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thedevs-network/kutt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPouria Ezzati <ezzati.upt@gmail.com>2022-11-10 18:33:10 +0300
committerPouria Ezzati <ezzati.upt@gmail.com>2022-11-10 18:34:14 +0300
commit8bfd41299bb50026a41cf21cc57b1d97fb051931 (patch)
tree34b5f43a2248d24765cafc0ff84b0de7edd65735
parent987bafdf368aea4168477288b6e1f7a428cef27a (diff)
fix: remove check user validation
-rw-r--r--server/handlers/validators.ts2
1 files changed, 0 insertions, 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."),