Skip to content

Commit

Permalink
Merge pull request #94 from GSM-MSG/refactoring/password_regex
Browse files Browse the repository at this point in the history
패스워드 정규식 수정
  • Loading branch information
dolong2 authored Mar 3, 2023
2 parents 4ea4ab0 + a0a2343 commit 1394b9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ data class PasswordInitReqDto(
@field:Pattern(regexp = "^[a-zA-Z0-9]+@gsm.hs.kr$")
val email: String,
@field:NotBlank
@field:Pattern(regexp = "^(?=.*[A-Za-z])(?=.*[0-9])(?=.*[\$@\$!%*#?&])[A-Za-z[0-9]\$@\$!%*#?&]{8,20}$")
@field:Pattern(regexp = "^(?=.*[a-zA-Z])(?=.*[!@#\$%^*+=-?<>])(?=.*[0-9]).{8,20}\$")
val newPassword: String,
)
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ data class SignUpDto(
val email: String,

@field:NotBlank
@field:Pattern(regexp = "^(?=.*[A-Za-z])(?=.*[0-9])(?=.*[\$@\$!%*#?&])[A-Za-z[0-9]\$@\$!%*#?&]{8,20}$")
@field:Pattern(regexp = "^(?=.*[a-zA-Z])(?=.*[!@#\$%^*+=-?<>])(?=.*[0-9]).{8,20}\$")
val password: String,

val profileUrl: String?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import javax.validation.constraints.Pattern

data class PasswordChangeReqDto(
@field:NotBlank
@field:Pattern(regexp = "^(?=.*[A-Za-z])(?=.*[0-9])(?=.*[\$@\$!%*#?&])[A-Za-z[0-9]\$@\$!%*#?&]{8,20}$")
@field:Pattern(regexp = "^(?=.*[a-zA-Z])(?=.*[!@#\$%^*+=-?<>])(?=.*[0-9]).{8,20}\$")
val password: String,
)

0 comments on commit 1394b9e

Please sign in to comment.