mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 07:13:39 -05: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:
parent
1a7f6514a4
commit
78bd986d0e
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ const UserRegistrationHandler = {
|
||||||
const setNewPasswordUrl = `${settings.siteUrl}/user/activate?token=${token}&user_id=${user._id}`
|
const setNewPasswordUrl = `${settings.siteUrl}/user/activate?token=${token}&user_id=${user._id}`
|
||||||
|
|
||||||
try {
|
try {
|
||||||
EmailHandler.promises.sendEmail('registered', {
|
await EmailHandler.promises.sendEmail('registered', {
|
||||||
to: user.email,
|
to: user.email,
|
||||||
setNewPasswordUrl,
|
setNewPasswordUrl,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue