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/adminApprove.jsp b/WebContent/html/webpages/adminApprove.jsp index 6c999ef..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; @@ -71,7 +68,6 @@ .table{ width: auto; background-color: #E9EAEB; - margin: 0 auto; } tbody{ @@ -89,6 +85,16 @@ <%@ include file="navbar.jsp"%> +
+