diff --git a/.classpath b/.classpath index cb479a4..7ac7040 100644 --- a/.classpath +++ b/.classpath @@ -12,8 +12,27 @@ - - + + + + + + + + + + + + + + + + + + + + + diff --git a/WebContent/WEB-INF/lib/activation.jar b/WebContent/WEB-INF/lib/activation.jar new file mode 100644 index 0000000..29a59a9 Binary files /dev/null and b/WebContent/WEB-INF/lib/activation.jar differ diff --git a/WebContent/WEB-INF/lib/mail.jar b/WebContent/WEB-INF/lib/mail.jar new file mode 100644 index 0000000..e4159c3 Binary files /dev/null and b/WebContent/WEB-INF/lib/mail.jar differ diff --git a/WebContent/WEB-INF/lib/servlet-api.jar b/WebContent/WEB-INF/lib/servlet-api.jar new file mode 100644 index 0000000..9793d17 Binary files /dev/null and b/WebContent/WEB-INF/lib/servlet-api.jar differ diff --git a/WebContent/WEB-INF/lib/smtp.jar b/WebContent/WEB-INF/lib/smtp.jar new file mode 100644 index 0000000..51d3421 Binary files /dev/null and b/WebContent/WEB-INF/lib/smtp.jar differ diff --git a/WebContent/adminLogin.jsp b/WebContent/adminLogin.jsp index 6341098..6f884ff 100644 --- a/WebContent/adminLogin.jsp +++ b/WebContent/adminLogin.jsp @@ -23,10 +23,23 @@ if (result.next()){ session.setAttribute("ssoNum", ssoNum); adminCookie = new Cookie("ssoNum", Integer.toString(ssoNum)); adminCookie.setMaxAge(30*60); + adminCookie.setPath("/"); response.addCookie(adminCookie); - stmt.close(); - connection.close(); - response.sendRedirect("html/webpages/admin.jsp"); + Cookie adminCookie2 = new Cookie("admin", Integer.toString(ssoNum)); + adminCookie2.setPath("/"); + response.addCookie(adminCookie2); + if(result.getInt("Password_Flag") == 1){ + stmt.close(); + connection.close(); + response.sendRedirect("html/webpages/admin.jsp"); + return; + } + else{ + stmt.close(); + connection.close(); + response.sendRedirect("html/webpages/adminpassword.jsp"); + return; + } } else { stmt.close(); connection.close(); diff --git a/WebContent/html/webpages/admin.jsp b/WebContent/html/webpages/admin.jsp index ba9df85..9ddfd7b 100644 --- a/WebContent/html/webpages/admin.jsp +++ b/WebContent/html/webpages/admin.jsp @@ -73,9 +73,10 @@ div.approveConfirm {
diff --git a/WebContent/html/webpages/adminApprove.jsp b/WebContent/html/webpages/adminApprove.jsp index 773165c..bd55259 100644 --- a/WebContent/html/webpages/adminApprove.jsp +++ b/WebContent/html/webpages/adminApprove.jsp @@ -56,9 +56,6 @@ border-color: #3B3C43; border-radius: 5px; } - div.displayDevice{ - left: 0px; - } .form-control{ margin: auto; text-align: center; @@ -76,6 +73,10 @@ tbody{ text-align: left; } + + .btn{ + margin-top: 15px; + } @@ -84,6 +85,16 @@ <%@ include file="navbar.jsp"%> + +