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-03-18 11:34:25 +01:00
parent cc6a9519e2
commit 0030995dd2

View file

@ -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)
}
)
}