mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 12:51:35 +02:00
Since the creation of the user happens asynchronously, the node process dies before it has created the user or sent the mail.
This commit is contained in:
@@ -114,7 +114,7 @@ const UserRegistrationHandler = {
|
||||
const setNewPasswordUrl = `${settings.siteUrl}/user/activate?token=${token}&user_id=${user._id}`
|
||||
|
||||
try {
|
||||
EmailHandler.promises.sendEmail('registered', {
|
||||
await EmailHandler.promises.sendEmail('registered', {
|
||||
to: user.email,
|
||||
setNewPasswordUrl,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user