Skip to content

Commit

Permalink
updated login class
Browse files Browse the repository at this point in the history
  • Loading branch information
sibow committed May 16, 2023
1 parent 11a45a1 commit 7af9d61
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/annex/web/Login.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
@WebServlet(urlPatterns = {"/Login"})
public class Login extends TopServlet{

static final long serialVersionUID = 190L;
static final long serialVersionUID = 190L;
static int count = 0;
String cookieName = ""; // "cas_session";
String cookieValue = ""; // ".bloomington.in.gov";
static Logger logger = LogManager.getLogger(Login.class);
Expand Down Expand Up @@ -84,6 +85,11 @@ else if(host != null){
}
}
else{
count++;
if(count < 3){
String str = url+"Login";
res.sendRedirect(str);
}
message += " You can not access this system, check with IT or try again later";
}
out.println("<head><title></title><body>");
Expand Down

0 comments on commit 7af9d61

Please sign in to comment.