Skip to content

Commit

Permalink
refactor: (#78) 환경 변수 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
khcho0125 committed Sep 27, 2022
1 parent 43b5d72 commit 325a9cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class AuthCode(
) {

companion object {
const val EXPIRED = 180
val EXPIRED = System.getenv("AUTHCODE_EXPIRED").toInt()
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 325a9cc

Please sign in to comment.