Skip to content

Commit

Permalink
Merge pull request #96 from AII-the-time/dev
Browse files Browse the repository at this point in the history
feat: add testing phone number
  • Loading branch information
raipen authored Nov 23, 2023
2 parents 3868d1f + 80991c7 commit 3c4d29c
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 3c4d29c

Please sign in to comment.