mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-17 12:33:22 +00:00
add html and subject to password recovery props
This commit is contained in:
@@ -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' })
|
||||
|
||||
Reference in New Issue
Block a user