Skip to content

Commit

Permalink
🔨 fix(auth) : 문자인증 모듈 prod false 로 설정 , 인증번호응답으로 넘겨줌 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
ImNM committed Sep 7, 2022
1 parent b7345d4 commit bdc0fb1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/auth/auth.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ import { RegisterTokenGuard } from './guards/RegisterToken.guard';
SmsModule.forRootAsync({
imports: [ConfigModule],
useFactory: async (configService: ConfigService) => ({
isProd: configService.get('NODE_ENV') === 'prod' ? true : false
// 데모 사이트를 위한 sms 모듈 fake 로설정
isProd: false
// isProd: configService.get('NODE_ENV') === 'prod' ? true : false
}),
inject: [ConfigService]
}),
Expand Down
3 changes: 2 additions & 1 deletion src/auth/dtos/RequestValidation.response.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export class ResponseRequestValidationDto {
phoneNumber: string;

@ApiProperty({ description: '테스트용 인증번호', type: String })
@Exclude()
// 테스트 서비스 인증번호
@Expose()
validationNumber: string;

@ApiProperty({ description: '이미 가입했는지에대한 정보', type: Boolean })
Expand Down
4 changes: 3 additions & 1 deletion src/queue/queue.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ import { QueueService } from './queue.service';
SmsModule.forRootAsync({
imports: [ConfigModule],
useFactory: async (configService: ConfigService) => ({
isProd: configService.get('NODE_ENV') === 'prod' ? true : false
// 데모 사이트를 위한 sms 모듈 fake 로설정
isProd: false
// isProd: configService.get('NODE_ENV') === 'prod' ? true : false
}),
inject: [ConfigService]
}),
Expand Down

0 comments on commit bdc0fb1

Please sign in to comment.