diff --git a/src/main/webapp/js/cmm/nlib.js b/src/main/webapp/js/cmm/nlib.js deleted file mode 100644 index ebf4a6c7..00000000 --- a/src/main/webapp/js/cmm/nlib.js +++ /dev/null @@ -1,27 +0,0 @@ -let CONTEXT_PATH = "/nlib"; - -function login(){ - const username = document.getElementById('username').value; - const password = document.getElementById('password').value; - let userInfo = {}; - - userInfo.username = username; - userInfo.password = password; - - alert("going to send"); - - $.ajax({ - type: "post", - /* url: "/login",*/ - url: CONTEXT_PATH + "/login/login.do", - data: userInfo, - success: function(data) { - alert('성공'); - console.log(data); - //location.href="/" - }, - error: function(e){ - alert('error!!'); - } - }); -} \ No newline at end of file diff --git a/src/main/webapp/js/nlib.js b/src/main/webapp/js/nlib.js index 6e97d25b..30ee1e44 100644 --- a/src/main/webapp/js/nlib.js +++ b/src/main/webapp/js/nlib.js @@ -6,7 +6,7 @@ * */ -var CONTEXT_PATH = "/nlib"; +var CONTEXT_PATH = ""; // 팝업으로 비밀번호를 입력받아서 콜백함수에 전달한다. function fn_promptPassword(msg, placeholder, callbackFucName) {