mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-15 19:37:30 +00:00
Call callback function after sending mail
Call callback function after successfully or unsuccessfully sending the activation mail. Fixes #988
This commit is contained in:
parent
cc6a9519e2
commit
0030995dd2
1 changed files with 1 additions and 2 deletions
|
@ -131,10 +131,9 @@ const UserRegistrationHandler = {
|
|||
if (error) {
|
||||
logger.warn({ err: error }, 'failed to send activation email')
|
||||
}
|
||||
callback(null, user, setNewPasswordUrl)
|
||||
}
|
||||
)
|
||||
|
||||
callback(null, user, setNewPasswordUrl)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue