Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Add external uuid to user create.
Brian Caodf84a16b9510
diff --git a/pages/api/users/index.js b/pages/api/users/index.jsindex dc00dd75f..b80e65d96 100644--- a/pages/api/users/index.js+++ b/pages/api/users/index.js@@ -19,7 +19,7 @@ export default async (req, res) => {}if (req.method === 'POST') {- const { username, password } = req.body;+ const { username, password, id } = req.body;const user = await getUser({ username });@@ -28,7 +28,7 @@ export default async (req, res) => {}const created = await createUser({- id: uuid(),+ id: id || uuid(),username,password: hashPassword(password),});