add : reseller
This commit is contained in:
@@ -33,6 +33,14 @@ export class AuthController {
|
||||
return this.authService.requestLoginOtp(requestOtpDto);
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation({ summary: "request to login with otp" })
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@Post("otp/send/reseller")
|
||||
sendOtpReseller(@Body() requestOtpDto: RequestOtpDto) {
|
||||
return this.authService.requestLoginOtpAgentAndReseller(requestOtpDto);
|
||||
}
|
||||
|
||||
@ApiOperation({ summary: "verify otp for login" })
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@Post("otp/verify")
|
||||
@@ -69,6 +77,13 @@ export class AuthController {
|
||||
return this.authService.adminVerifyLoginOtp(verifyOtpDto);
|
||||
}
|
||||
|
||||
@ApiOperation({ summary: "verify otp for login" })
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@Post("otp/verify/agent")
|
||||
resellerVerifyOtp(@Body() verifyOtpDto: VerifyOtpDto) {
|
||||
return this.authService.requestLoginOtpAgentAndReseller(verifyOtpDto);
|
||||
}
|
||||
|
||||
@AuthGuards()
|
||||
@ApiOperation({ summary: "Update user password" })
|
||||
@HttpCode(HttpStatus.OK)
|
||||
|
||||
Reference in New Issue
Block a user