From 083882c189573e715a0aa2c8c57c27a22263d3de Mon Sep 17 00:00:00 2001 From: Jo Kyung Hyeon Date: Mon, 23 Jan 2023 21:08:27 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20(#301)=20=ED=95=A8=EC=88=98=20?= =?UTF-8?q?=EB=AA=85=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/team/comit/simtong/domain/auth/model/AuthCode.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simtong-domain/src/main/kotlin/team/comit/simtong/domain/auth/model/AuthCode.kt b/simtong-domain/src/main/kotlin/team/comit/simtong/domain/auth/model/AuthCode.kt index 9dd5a10d..7b32bed9 100644 --- a/simtong-domain/src/main/kotlin/team/comit/simtong/domain/auth/model/AuthCode.kt +++ b/simtong-domain/src/main/kotlin/team/comit/simtong/domain/auth/model/AuthCode.kt @@ -35,7 +35,7 @@ data class AuthCode( fun issue(email: String) = AuthCode( key = email, - code = Code.defaultValue(), + code = Code.generate(), expirationTime = EXPIRED ) } @@ -61,6 +61,6 @@ value class Code private constructor( companion object { fun of(value: String) = Code(value) - fun defaultValue() = Code(RandomString(6).nextString()) + fun generate() = Code(RandomString(6).nextString()) } } \ No newline at end of file