Skip to content

Commit

Permalink
🐛 Sms 인증 - 인증번호가 0으로 시작하면 발생하는 에러 해결"
Browse files Browse the repository at this point in the history
  • Loading branch information
HyoBN committed Dec 1, 2023
1 parent eeb20ea commit 0b2ab48
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ public SmsResponseDto.AuthNumResultDto sendSms(String targetNumber) throws JsonP

@Override
public String getRandomNumber() {
return RandomStringUtils.randomNumeric(6);
Random random = new Random();
int rand= random.nextInt(900000) + 100000;
return String.valueOf(rand);
}
}

0 comments on commit 0b2ab48

Please sign in to comment.