Skip to content

Commit

Permalink
feat: add testing phone number
Browse files Browse the repository at this point in the history
  • Loading branch information
raipen committed Nov 23, 2023
1 parent 56a9c82 commit 80991c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/userService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default {
}
let certificationCode = '123456';
/* istanbul ignore next */
if(process.env.NODE_ENV === 'production'){
if(process.env.NODE_ENV === 'production'&&phone !== '01011112222'){
certificationCode = crypto.randomInt(100000, 999999).toString();
sendSMS(phone, 'SMS', `[카페포스] 인증번호는 ${certificationCode}입니다.`);
}
Expand Down Expand Up @@ -90,7 +90,7 @@ export default {
phoneNumber: certificatedPhone.phone,
},
});
if (!user) {
if (!user||businessRegistrationNumber === '0000') {
user = await this.create({
businessRegistrationNumber,
certificatedPhoneToken,
Expand Down

0 comments on commit 80991c7

Please sign in to comment.