diff --git a/src/main/java/cokr/xit/fims/base/UserController.java b/src/main/java/cokr/xit/fims/base/UserController.java index 0d9abacb..60ecae9e 100644 --- a/src/main/java/cokr/xit/fims/base/UserController.java +++ b/src/main/java/cokr/xit/fims/base/UserController.java @@ -23,9 +23,6 @@ public class UserController extends cokr.xit.base.user.web.UserController/* 사용자 계정 가져오기(userMapper.getUser) */ SELECT * FROM TB_USER - WHERE USER_ACNT = #{account} - AND NSTT_CD = #{institute} + +AND USER_ID = #{userID} +AND USER_ACNT = #{account} + AND NSTT_CD = #{institute} + + SELECT LPAD(NVL(MAX(USER_ID) + 1, 1), 10, '0') NEW_ID FROM TB_USER diff --git a/src/main/webapp/WEB-INF/jsp/fims/user/password-info.jsp b/src/main/webapp/WEB-INF/jsp/base/user/password.jsp similarity index 86% rename from src/main/webapp/WEB-INF/jsp/fims/user/password-info.jsp rename to src/main/webapp/WEB-INF/jsp/base/user/password.jsp index 60126945..b85daa90 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/user/password-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/base/user/password.jsp @@ -72,26 +72,18 @@ return; } - ajax.get({ - url : wctx.url("/user/confirmPassword.do"), - data : { password : $("#password-form input[name='currentPassword']").val() }, - success : (resp) => { - if(resp.result){ - savePassword(); - } else { - dialog.alert("현재 비밀번호가 일치하지 않습니다."); - } - } - }); - + savePassword(); } function savePassword(){ + ajax.post({ url : wctx.url("/user/changePassword.do"), data : { - userID : MY_INFO.id, - password : $("#password-form input[name='password']").val() + userIDs : MY_INFO.id, + password : $("#password-form input[name='password']").val(), + currentPassword : $("#password-form input[name='currentPassword']").val(), + init : false }, success : (resp) => { if(resp.saved){ @@ -102,6 +94,5 @@ } } }); - } \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/fims/user/user-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/user/user-info.jsp index 3050023a..3129827b 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/user/user-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/user/user-info.jsp @@ -112,7 +112,7 @@ -