mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f1b9809f35 |
@@ -12,7 +12,7 @@ export default async function registerNewUserAndSendActivationEmail(userData) {
|
||||
let user
|
||||
try {
|
||||
const password = crypto.randomBytes(32).toString('hex')
|
||||
user = await UserRegistrationHandler.promises.registerNewUser({ ...userData, password })
|
||||
user = await UserRegistrationHandler.promises.registerNewUser({ ...userData, password, analyticsId: crypto.randomUUID() })
|
||||
} catch (error) {
|
||||
if (error.message === 'EmailAlreadyRegistered') {
|
||||
logger.debug({ email: userData.email }, 'user already registered')
|
||||
|
||||
Reference in New Issue
Block a user