From 0030995dd2d0825c3e2f38a105d66d0d50ed0c82 Mon Sep 17 00:00:00 2001 From: Christopher Schenk Date: Fri, 18 Mar 2022 11:34:25 +0100 Subject: [PATCH] Call callback function after sending mail Call callback function after successfully or unsuccessfully sending the activation mail. Fixes #988 --- services/web/app/src/Features/User/UserRegistrationHandler.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/web/app/src/Features/User/UserRegistrationHandler.js b/services/web/app/src/Features/User/UserRegistrationHandler.js index 377bf2dd7c..7f07a11655 100644 --- a/services/web/app/src/Features/User/UserRegistrationHandler.js +++ b/services/web/app/src/Features/User/UserRegistrationHandler.js @@ -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) } ) }