하관우 하관우 04-21
2025-04-21 하관우 회원 아이디 소문자 숫자만 가능
@beea4ece0b7157c8488f59481023bcb1dc217e02
client/views/pages/member/MemberManagement.vue
--- client/views/pages/member/MemberManagement.vue
+++ client/views/pages/member/MemberManagement.vue
@@ -255,6 +255,11 @@
                     if (confirm("회원가입을 하시겠습니까?")) {
                         if (this.$isEmpty(this.joinDTO.loginId)) {
                             alert("아이디를 확인해주세요.")
+                        } else if (this.joinDTO.loginId) {
+                            const regex = /^[a-z0-9]+$/; // 소문자와 숫자만 허용하는 정규 표현식
+                            if (!regex.test(this.joinDTO.loginId)) {
+                                alert("아이디는 소문자와 숫자 조합만 가능합니다.");
+                            }
                         } else if (this.$isEmpty(this.password) && this.$isEmpty(this.passwordCheck)) {
                             alert("비밀번호를 확인해주세요.")
                         } else if (this.password != this.passwordCheck) {
Add a comment
List