Call callback function after sending mail

Call callback function after successfully or unsuccessfully
sending the activation mail.
Fixes #988
This commit is contained in:
Christopher Schenk
2022-04-25 13:31:42 +02:00
parent 3b8a169350
commit ef34d44627
@@ -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)
}
)
}