mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -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}`
|
||||
|
||||
try {
|
||||
EmailHandler.promises.sendEmail('registered', {
|
||||
await EmailHandler.promises.sendEmail('registered', {
|
||||
to: user.email,
|
||||
setNewPasswordUrl,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue