@@ -105,7 +105,7 @@
|
|||||||
data: $('#loginForm').serialize(),
|
data: $('#loginForm').serialize(),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
console.log('res', response)
|
|
||||||
if (response.changePassword) {
|
if (response.changePassword) {
|
||||||
showChangeInitPassword(response);
|
showChangeInitPassword(response);
|
||||||
}
|
}
|
||||||
@@ -117,15 +117,8 @@
|
|||||||
// 직접 로그인 성공
|
// 직접 로그인 성공
|
||||||
window.location.href = response.redirectUrl;
|
window.location.href = response.redirectUrl;
|
||||||
} else {
|
} else {
|
||||||
if (response.errorMessage == 'NO_PHONE_NUMBER') {
|
// 로그인 실패
|
||||||
alert("휴대폰번호가 등록되어 있지 않아 로그인할 수 없습니다. 관리자에게 문의하세요")
|
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) {
|
error: function(xhr, status, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user