injected API to handle the authentication related operations
verify email configuration
injected service use to handle the user related operations
injected logger used to handle the logging
request context [headers, body, params, query]. Note:
params.id
is required204 Status No Content
This handler will send verification email by applying the following steps in sequence:
Get userId from context.params
Check if verify email feature is enabled, if yes continue next step, otherwise throw 404 error
Find user by userId (userService.findUsers)
Generate onetime token (authAPI.generateOnetimeToken)
Send email (verifyEmailConfig.mailService.sendMail)
400 NBError Bad Request
404 NBError Not Found
500 NBError Internal Server Error
Generated using TypeDoc
Send verification email handler