From ece1cbbef67efa37593781fe2084bba200d18bf0 Mon Sep 17 00:00:00 2001 From: 101 Date: Wed, 20 Mar 2024 16:26:43 +0900 Subject: [PATCH] update UserMailSendService.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6글자 보내도록 변경 --- .../domain/mail/usecase/service/UserMailSendService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemawiki-api/src/main/java/org/daemawiki/domain/mail/usecase/service/UserMailSendService.java b/daemawiki-api/src/main/java/org/daemawiki/domain/mail/usecase/service/UserMailSendService.java index 052fd822..9617dd26 100644 --- a/daemawiki-api/src/main/java/org/daemawiki/domain/mail/usecase/service/UserMailSendService.java +++ b/daemawiki-api/src/main/java/org/daemawiki/domain/mail/usecase/service/UserMailSendService.java @@ -103,7 +103,7 @@ private String getMailTemplate(String key) { private String getRandomCode() { SecureRandom secureRandom = new SecureRandom(); - byte[] randomBytes = new byte[6]; + byte[] randomBytes = new byte[4]; secureRandom.nextBytes(randomBytes); return Base64.getUrlEncoder().withoutPadding().encodeToString(randomBytes); }