계정상태에 따른 자동로그아웃 추가

main
이범준 11 months ago
parent e2af1d5528
commit 2edc98ad6f

@ -104,6 +104,20 @@
data:{}, data:{},
success:resp => { success:resp => {
MY_INFO = resp.myInfo; MY_INFO = resp.myInfo;
if(MY_INFO.user.status == "A" || MY_INFO.user.status == "D" || MY_INFO.user.locked == "Y"){
if(MY_INFO.user.status == "A"){
alert("계정이 미승인 상태입니다.");
} else if(MY_INFO.user.status == "D"){
alert("삭제된 계정입니다.");
} else if(MY_INFO.user.locked == "Y"){
alert("잠금처리된 계정입니다.");
}
var form = $("<form action=\"/logout.do\", method=\"POST\">");
$("<input name=\"${_csrf.parameterName}\" value=\"${_csrf.token}\" type=\"hidden\">").appendTo(form);
form.appendTo("body").submit();
}
} }
}); });

Loading…
Cancel
Save