feat: hash otp code
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Body, Controller, HttpCode, Post } from '@nestjs/common';
|
||||
import { LoginDTO } from './dtos/login.dto';
|
||||
import { AuthService } from './providers/auth.service';
|
||||
import { VerifyOtpDTO } from './dtos/verify-otp.dto';
|
||||
|
||||
@Controller('users')
|
||||
export class AuthController {
|
||||
@@ -16,4 +17,10 @@ export class AuthController {
|
||||
public async logIn(@Body() loginDto: LoginDTO) {
|
||||
return await this.authService.logIn(loginDto);
|
||||
}
|
||||
|
||||
@Post('verify-otp')
|
||||
@HttpCode(200)
|
||||
public verifyOTP(@Body() verifyOtpDto: VerifyOtpDTO) {
|
||||
return verifyOtpDto;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,4 +14,6 @@ export class AuthService {
|
||||
public async logIn(loginDto: LoginDTO) {
|
||||
return await this.loginProvider.logIn(loginDto);
|
||||
}
|
||||
|
||||
// public async verifyOTP(verifyOtpDto: VerifyOtpDTO) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user