로그인 오류 메세지 통일 (보안지적사항)
eapim-admin CI / build (push) Waiting to run

This commit is contained in:
eastargh
2026-09-21 17:03:27 +09:00
parent 4ea704f60e
commit 842c972a9b
+2 -9
View File
@@ -105,7 +105,7 @@
data: $('#loginForm').serialize(),
dataType: 'json',
success: function(response) {
console.log('res', response)
if (response.changePassword) {
showChangeInitPassword(response);
}
@@ -117,16 +117,9 @@
// 직접 로그인 성공
window.location.href = response.redirectUrl;
} else {
if (response.errorMessage == 'NO_PHONE_NUMBER') {
alert("휴대폰번호가 등록되어 있지 않아 로그인할 수 없습니다. 관리자에게 문의하세요")
} else if (response.errorMessage == 'FAIL_SEND_AUTH') {
alert("인증번호 발송에 실패했습니다. 잠시 후 다시 시도해주세요.")
} else if (response.errorMessage == 'NOT_ALLOWED_IP') {
alert("허용되지 않은 IP에서 접속하였습니다")
} else {
// 로그인 실패
alert('로그인에 실패했습니다');
}
}
},
error: function(xhr, status, error) {
console.error('Login error:', error);