Skip to content

Commit

Permalink
Merge pull request #112 from arc12012/bugs
Browse files Browse the repository at this point in the history
Bugs
  • Loading branch information
clj13001 committed Apr 13, 2017
2 parents 7535ac3 + 6fd0ac4 commit f22f1a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
4 changes: 3 additions & 1 deletion WebContent/html/webpages/navbar.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@
}
}
}
if(navsso.equals("invalid"))//if we didn't get a cookie, redirect to the homepage to log in again!
if(navsso.equals("invalid")){//if we didn't get a cookie, redirect to the homepage to log in again!
response.sendRedirect("../../index.jsp");
return;
}
else{
self = EmployeeQueries.getEmployeeByID(Integer.parseInt(navsso));
navname = self.getName();
Expand Down
18 changes: 4 additions & 14 deletions WebContent/html/webpages/returnPage.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@
width: 20px;
}
</style>
<nav class="navbar navbar-inverse navbar-fixed-top" id = "navbaruniversal">
<%@ include file="navbar.jsp"%>
</nav>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top" id = "navbaruniversal">
<%@ include file="navbar.jsp"%>
</nav>
<!-- Modal for transaction review. -->
<div id="orderInfoModal" class="modal">
<div class="modal-content">
Expand Down Expand Up @@ -122,17 +122,7 @@
</div>

<%
//get user information
Cookie[] cookies = request.getCookies();
String sso = "";
for(Cookie c : cookies){
if(c.getName().equals("ssoNum")){
sso = c.getValue();
break;
}
}
Device[] mydevices = DeviceQueries.getUserDevices(sso);
Device[] mydevices = DeviceQueries.getUserDevices(navsso);
//string representation of array.
String deviceString = Device.arrayToString(mydevices);
%>
Expand Down

0 comments on commit f22f1a4

Please sign in to comment.