From 325a9cc440c0f57236d9af83118dc622c1fb9536 Mon Sep 17 00:00:00 2001 From: Jo Kyung Hyeon Date: Tue, 27 Sep 2022 10:35:02 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20(#78)=20=ED=99=98=EA=B2=BD=20?= =?UTF-8?q?=EB=B3=80=EC=88=98=20=EC=82=AC=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/team/comit/simtong/domain/auth/model/AuthCode.kt | 2 +- .../team/comit/simtong/domain/auth/model/AuthCodeLimit.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 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 e97f95a9..85bb5575 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 @@ -20,7 +20,7 @@ class AuthCode( ) { companion object { - const val EXPIRED = 180 + val EXPIRED = System.getenv("AUTHCODE_EXPIRED").toInt() } } \ No newline at end of file diff --git a/simtong-domain/src/main/kotlin/team/comit/simtong/domain/auth/model/AuthCodeLimit.kt b/simtong-domain/src/main/kotlin/team/comit/simtong/domain/auth/model/AuthCodeLimit.kt index f84a4bc7..f712dc49 100644 --- a/simtong-domain/src/main/kotlin/team/comit/simtong/domain/auth/model/AuthCodeLimit.kt +++ b/simtong-domain/src/main/kotlin/team/comit/simtong/domain/auth/model/AuthCodeLimit.kt @@ -23,9 +23,9 @@ class AuthCodeLimit( ) { companion object { - const val EXPIRED = 1800 - const val MAX_ATTEMPT_COUNT: Short = 5 - const val VERIFIED_EXPIRED = 2700 + val EXPIRED = System.getenv("AUTHCODELIMIT_EXPIRED").toInt() + val MAX_ATTEMPT_COUNT = System.getenv("AUTHCODELIMIT_MAX_ATTEMPT_COUNT").toShort() + val VERIFIED_EXPIRED = System.getenv("AUTHCODELIMIT_VERIFIED_EXPIRED").toInt() } fun sendAuthCode(): AuthCodeLimit {