
--- client/views/pages/member/MemberManagement.vue
+++ client/views/pages/member/MemberManagement.vue
... | ... | @@ -255,6 +255,11 @@ |
255 | 255 |
if (confirm("회원가입을 하시겠습니까?")) { |
256 | 256 |
if (this.$isEmpty(this.joinDTO.loginId)) { |
257 | 257 |
alert("아이디를 확인해주세요.") |
258 |
+ } else if (this.joinDTO.loginId) { |
|
259 |
+ const regex = /^[a-z0-9]+$/; // 소문자와 숫자만 허용하는 정규 표현식 |
|
260 |
+ if (!regex.test(this.joinDTO.loginId)) { |
|
261 |
+ alert("아이디는 소문자와 숫자 조합만 가능합니다."); |
|
262 |
+ } |
|
258 | 263 |
} else if (this.$isEmpty(this.password) && this.$isEmpty(this.passwordCheck)) { |
259 | 264 |
alert("비밀번호를 확인해주세요.") |
260 | 265 |
} else if (this.password != this.passwordCheck) { |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?