add html and subject to password recovery props

This commit is contained in:
2023-07-18 12:53:39 +02:00
parent f38a019429
commit 75361abc82
4 changed files with 33 additions and 6 deletions

View File

@@ -208,7 +208,7 @@ export class AuthController {
@HttpCode(HttpStatus.NO_CONTENT)
@Post('recover-password')
async recoverPassword(@Body() body: RecoverPasswordDto): Promise<void> {
return await this.commandBus.execute(new SendPasswordRecoveryEmailCommand(body.email))
return await this.commandBus.execute(new SendPasswordRecoveryEmailCommand(body))
}
@ApiOperation({ description: 'Reset password', summary: 'Reset password' })