Admin tools, Authentication: Fix: set analyticsId when creating a new user

This commit is contained in:
Pierpaolo Vittorini
2026-09-22 02:41:42 +02:00
committed by yu-i-i
parent f71de2eacc
commit 24e2fdaab5
4 changed files with 7 additions and 0 deletions
@@ -116,6 +116,7 @@ async function registerNewUser(req, res, next) {
}
delete req.body.isExternal
req.body.password = crypto.randomBytes(32).toString('hex')
req.body.analyticsId = crypto.randomUUID()
let user
try {