비밀번호 변경 관련 소스 정리

dev
mjkhan21 5 months ago
parent a0292d3cda
commit 4655c4cd84

@ -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
</script>

@ -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: "비밀번호 초기화",

@ -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 --%>
<nav id="layout-navbar" class="layout-navbar navbar navbar-expand-xl bg-navbar-theme bg-primary justify-content-between">
<div class="navbar-nav">
@ -12,10 +11,7 @@
alt="Login image"
/>
</a>
</div>
<div class="navbar-nav navbar-dropdown dropdown-user dropdown">
<div class="avatar d-flex flex-row" data-bs-toggle="dropdown">
<img src="<c:url value='/resources/img/avatars/99.svg' />" class="w-px-40 h-auto rounded-circle" style="border: 2px solid white;">
@ -66,9 +62,4 @@ function currentUserInfo() {
function setPageTitle(pageTitle) {
$("#pageTitle").html(pageTitle);
}
</c:set>
Loading…
Cancel
Save