diff --git a/front/src/main/resources/templates/info/user/password.html b/front/src/main/resources/templates/info/user/password.html
index b3530d82..e2662a72 100644
--- a/front/src/main/resources/templates/info/user/password.html
+++ b/front/src/main/resources/templates/info/user/password.html
@@ -23,7 +23,7 @@
+ inputmode="numeric" pattern="[0-9]*" maxlength="4">
diff --git a/front/src/main/resources/templates/info/user/user.html b/front/src/main/resources/templates/info/user/user.html
index bc66c2e8..f4a151cb 100644
--- a/front/src/main/resources/templates/info/user/user.html
+++ b/front/src/main/resources/templates/info/user/user.html
@@ -107,7 +107,7 @@
@@ -333,13 +333,13 @@
// selectboxInstance1.setValue($('input[name=regionMainCode]').val());
},
confirmPopup() {
- const currentName = document.querySelector('input[name="ownerName"]').value;
+ const currentName = document.querySelector('input[name="ownerName"]').value.trim();
- // 사용자가 이름을 변경했을 경우에만 개인정보 변경 동의서 모달 띄우기
- if (currentName !== ENV.initialOwnerName) {
+ if (currentName === '') { // 이름 비어있을 경우 유효성검사 실시
+ formControl.updateUserInfo();
+ } else if (currentName !== ENV.initialOwnerName) { // 이름이 변경됐을 경우 개인정보동의 모달창 띄우기
ENV.module.confirmPopup.open();
} else {
- // 이름 그대로면 바로 저장
formControl.updateUserInfo();
}
},