Skip to content

Commit

Permalink
have to do a redirect after success
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandunn committed Nov 29, 2016
1 parent bfd8141 commit bcda11f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp)
userData.setEmail(ghUserResponse.email);
HttpSession httpSession = req.getSession();
sessionHandler.setAuthenticated(userData, httpSession);
resp.sendRedirect("/");
}
else{
throw new RuntimeException("Failed to authenticate");
Expand Down

0 comments on commit bcda11f

Please sign in to comment.