feat: hash otp code

This commit is contained in:
2026-02-24 09:22:39 +03:30
parent 63b4567166
commit b9adbef7e8
4 changed files with 33 additions and 7 deletions
+7
View File
@@ -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) {}
}