diff --git a/src/main/kotlin/com/msg/gauth/domain/auth/presentation/dto/request/PasswordInitReqDto.kt b/src/main/kotlin/com/msg/gauth/domain/auth/presentation/dto/request/PasswordInitReqDto.kt index 3ca31a07..7a95189a 100644 --- a/src/main/kotlin/com/msg/gauth/domain/auth/presentation/dto/request/PasswordInitReqDto.kt +++ b/src/main/kotlin/com/msg/gauth/domain/auth/presentation/dto/request/PasswordInitReqDto.kt @@ -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, ) \ No newline at end of file diff --git a/src/main/kotlin/com/msg/gauth/domain/auth/presentation/dto/request/SignupRequestDto.kt b/src/main/kotlin/com/msg/gauth/domain/auth/presentation/dto/request/SignupRequestDto.kt index e666138e..951f092d 100644 --- a/src/main/kotlin/com/msg/gauth/domain/auth/presentation/dto/request/SignupRequestDto.kt +++ b/src/main/kotlin/com/msg/gauth/domain/auth/presentation/dto/request/SignupRequestDto.kt @@ -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?, diff --git a/src/main/kotlin/com/msg/gauth/domain/user/presentation/dto/request/PasswordChangeReqDto.kt b/src/main/kotlin/com/msg/gauth/domain/user/presentation/dto/request/PasswordChangeReqDto.kt index c239cd2a..17b0c0d4 100644 --- a/src/main/kotlin/com/msg/gauth/domain/user/presentation/dto/request/PasswordChangeReqDto.kt +++ b/src/main/kotlin/com/msg/gauth/domain/user/presentation/dto/request/PasswordChangeReqDto.kt @@ -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, ) \ No newline at end of file