⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
bug fixed
daniel31x139f181fb15e92
diff --git a/lib/api/controllers/users/postUser.ts b/lib/api/controllers/users/postUser.tsindex d9f24f94..22e52eca 100644--- a/lib/api/controllers/users/postUser.ts+++ b/lib/api/controllers/users/postUser.ts@@ -30,6 +30,11 @@ export default async function postUser(? !body.password || !body.name || !body.email: !body.username || !body.password || !body.name;+ if (body.password.length < 8)+ return res+ .status(400)+ .json({ response: "Password must be at least 8 characters." });+if (checkHasEmptyFields)return res.status(400)diff --git a/lib/api/controllers/users/userId/updateUserById.ts b/lib/api/controllers/users/userId/updateUserById.tsindex 3c4e03e1..1d082039 100644--- a/lib/api/controllers/users/userId/updateUserById.ts+++ b/lib/api/controllers/users/userId/updateUserById.ts@@ -23,6 +23,11 @@ export default async function updateUserById(response: "Username invalid.",status: 400,};+ if (data.newPassword && data.newPassword?.length < 8)+ return {+ response: "Password must be at least 8 characters.",+ status: 400,+ };// Check email (if enabled)const checkEmail =diff --git a/styles/globals.css b/styles/globals.cssindex d1d26d6c..bf9183cb 100644--- a/styles/globals.css+++ b/styles/globals.css@@ -234,6 +234,8 @@ body {}.reader-view img {margin: auto;+ margin-top: 2rem;+ margin-bottom: 2rem;border-radius: 10px;}.reader-view pre {