update jakarta
This commit is contained in:
@@ -62,10 +62,10 @@ public class NouveauServlet extends HttpServlet {
|
||||
@Override
|
||||
protected void doGet(HttpServletRequest request, HttpServletResponse response)
|
||||
throws ServletException, IOException {
|
||||
// processRequest(request, response);
|
||||
HttpSession maSession = request.getSession();
|
||||
boolean isAuthentified = (maSession.getAttribute("isAuthentified") != null) ? (boolean) maSession.getAttribute("isAuthentified") : false;
|
||||
if (!isAuthentified) {
|
||||
boolean isAdmin = (maSession.getAttribute("isAdmin") != null) ? (boolean) maSession.getAttribute("isAdmin") : false;
|
||||
if (!isAuthentified || !isAdmin) {
|
||||
response.sendRedirect("/Test2Jakarta/Accueil");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user