@@ -207,5 +208,31 @@ 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: "비밀번호 초기화",
+ content: "비밀번호를 초기화하시겠습니까?",
+ onOK: () => {
+ userControl.changePassword({
+ userIDs: userControl.getCurrent().USER_ID,
+ init: true
+ })
+ .then(resp => {
+ if (resp.saved)
+ dialog.alert("비밀번호가 초기화됐습니다.");
+ });
+ }
+ });
+}
//# sourceURL=user-info.jsp
\ No newline at end of file
diff --git a/src/main/webapp/WEB-INF/jsp/include/tail.jsp b/src/main/webapp/WEB-INF/jsp/include/tail.jsp
index 43a0348..2a4c20c 100644
--- a/src/main/webapp/WEB-INF/jsp/include/tail.jsp
+++ b/src/main/webapp/WEB-INF/jsp/include/tail.jsp
@@ -61,15 +61,19 @@ wctx.csrf = {
dialog.title = "마약류폐기지원시스템";
-function logout() {
- dialog.alert({
- content:"로그아웃 하시겠습니까?",
- onOK:function(){
+function logout(prompt) {
+ let func = () => {
var form = $("\", method=\"POST\">");
$("").appendTo(form);
form.appendTo("body").submit();
- }
- });
+ };
+ if (prompt !== false)
+ dialog.alert({
+ content: "로그아웃 하시겠습니까?",
+ onOK: func
+ });
+ else
+ func();
}
@@ -92,5 +96,5 @@ async function selectURL(multiple) {
});
}
-
-${functions}
+${functions}
+
\ No newline at end of file
diff --git a/src/main/webapp/WEB-INF/jsp/include/top.jsp b/src/main/webapp/WEB-INF/jsp/include/top.jsp
index 10d1cf2..93374b8 100644
--- a/src/main/webapp/WEB-INF/jsp/include/top.jsp
+++ b/src/main/webapp/WEB-INF/jsp/include/top.jsp
@@ -37,14 +37,11 @@
-
diff --git a/src/main/webapp/WEB-INF/jsp/index.jsp b/src/main/webapp/WEB-INF/jsp/index.jsp
index 8e86745..571d983 100644
--- a/src/main/webapp/WEB-INF/jsp/index.jsp
+++ b/src/main/webapp/WEB-INF/jsp/index.jsp
@@ -146,6 +146,7 @@ $(".sticky-element").sticky({
$(function() {
${onload}
mainTabs.open(FIRST_PAGE);
+ currentUserControl.changePassword();
});
//# sourceURL=index.jsp