From a5de9de99919fe2c43dd1964821d9652c52029c7 Mon Sep 17 00:00:00 2001
From: Andrea Vos
Date: Wed, 12 Oct 2022 22:45:31 +0200
Subject: [PATCH] [profile] increase list size limits
---
routes/profileEditor.vue | 6 +++---
server/routes/profile.js | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/routes/profileEditor.vue b/routes/profileEditor.vue
index 9e8301730..81eb6bfd6 100644
--- a/routes/profileEditor.vue
+++ b/routes/profileEditor.vue
@@ -108,7 +108,7 @@
profile.namesInfo
-
+
@@ -125,7 +125,7 @@
profile.pronounsInfo
-
+
@@ -177,7 +177,7 @@
profile.links
-
+
s.update(s.val))" @change="s.update(s.val)" required/>
diff --git a/server/routes/profile.js b/server/routes/profile.js
index 763495c70..35e82c720 100644
--- a/server/routes/profile.js
+++ b/server/routes/profile.js
@@ -206,9 +206,9 @@ router.post('/profile/save', handleErrorAsync(async (req, res) => {
}
if (req.body.opinions.length > 5
- || req.body.names.length > 16
- || req.body.pronouns.length > 24
- || req.body.links.length > 16
+ || req.body.names.length > 32
+ || req.body.pronouns.length > 32
+ || req.body.links.length > 32
|| req.body.words.filter(c => c.values.length > 32).length > 0
) {
return res.status(400).json({error: 'crud.validation.genericForm'});