role
This commit is contained in:
@@ -19,7 +19,7 @@ export class AdminAuthController {
|
||||
@ApiResponse({ status: 201, description: 'OTP requested successfully' })
|
||||
@ApiResponse({ status: 400, description: 'Invalid mobile number' })
|
||||
otpRequest(@Body() dto: RequestOtpDto) {
|
||||
return this.authService.requestOtp(dto);
|
||||
return this.authService.requestOtpAdmin(dto);
|
||||
}
|
||||
|
||||
@Post('otp/verify')
|
||||
@@ -28,7 +28,7 @@ export class AdminAuthController {
|
||||
@ApiResponse({ status: 200, description: 'OTP verified successfully' })
|
||||
@ApiResponse({ status: 400, description: 'Invalid OTP or expired' })
|
||||
otpVerify(@Body() dto: VerifyOtpDto) {
|
||||
return this.authService.verifyOtp(dto.phone, dto.slug, dto.otp); // assuming dto has `otp` property
|
||||
return this.authService.verifyOtpAdmin(dto.phone, dto.slug, dto.otp); // assuming dto has `otp` property
|
||||
}
|
||||
|
||||
// @Post('admin/otp/request')
|
||||
|
||||
Reference in New Issue
Block a user