update jakarta

This commit is contained in:
2025-10-03 14:58:15 +02:00
parent 4634cfd4c2
commit c8f8c628d9
15 changed files with 401 additions and 39 deletions

View File

@@ -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;
}