From 4655c4cd84c0715b02ec6d187a450d211e8f75e5 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Thu, 20 Jun 2024 18:00:38 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B9=84=EB=B0=80=EB=B2=88=ED=98=B8=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20=EA=B4=80=EB=A0=A8=20=EC=86=8C=EC=8A=A4=20?= =?UTF-8?q?=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webapp/WEB-INF/jsp/base/user/password.jsp | 19 ------------------- .../WEB-INF/jsp/base/user/user-info.jsp | 9 --------- src/main/webapp/WEB-INF/jsp/include/top.jsp | 11 +---------- 3 files changed, 1 insertion(+), 38 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/base/user/password.jsp b/src/main/webapp/WEB-INF/jsp/base/user/password.jsp index fbcaf93..68f04df 100644 --- a/src/main/webapp/WEB-INF/jsp/base/user/password.jsp +++ b/src/main/webapp/WEB-INF/jsp/base/user/password.jsp @@ -57,24 +57,5 @@ function changePassword() { $(function() { $("#change-password input").onEnterPress(() => changePassword()); }); -<%-- -function savePassword(){ - ajax.post({ - url : wctx.url("/user/changePassword.do"), - data : { - userID : MY_INFO.id, - password : $("#change-password input[name='password']").val() - }, - success : (resp) => { - if(resp.saved){ - dialog.alert("비밀번호 변경에 성공하였습니다."); - dialog.close("changePasswordDialog"); - } else { - dialog.alert("비밀번호 변경에 실패하였습니다."); - } - } - }); -} ---%> //# sourceURL=password.jsp \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/base/user/user-info.jsp b/src/main/webapp/WEB-INF/jsp/base/user/user-info.jsp index 86079a0..ca9ab48 100644 --- a/src/main/webapp/WEB-INF/jsp/base/user/user-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/base/user/user-info.jsp @@ -209,15 +209,6 @@ function saveinfoPrefix() { }); } -function _initPassword() { - let resp = userControl.changePassword({ - userIDs: userControl.getCurrent().USER_ID, - init: true - }); - if (resp.saved) - dialog.alert("비밀번호가 초기화됐습니다."); -} - async function initPassword() { dialog.alert({ title: "비밀번호 초기화", diff --git a/src/main/webapp/WEB-INF/jsp/include/top.jsp b/src/main/webapp/WEB-INF/jsp/include/top.jsp index 93374b8..9d4f47a 100644 --- a/src/main/webapp/WEB-INF/jsp/include/top.jsp +++ b/src/main/webapp/WEB-INF/jsp/include/top.jsp @@ -1,6 +1,5 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%> <%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> - <%-- Navbar --%>