From 3aca05f622c75baf272d5496315afb2a221fe262 Mon Sep 17 00:00:00 2001 From: Cheng Hu Shan Date: Tue, 4 Jun 2024 18:01:34 +0200 Subject: [PATCH] Fixed: Afterlogin events are called during logout (OFBIZ-13114) --- .../java/org/apache/ofbiz/webapp/control/LoginWorker.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/LoginWorker.java b/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/LoginWorker.java index cd10879cf67..df32e03c9b4 100644 --- a/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/LoginWorker.java +++ b/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/LoginWorker.java @@ -931,11 +931,6 @@ public static void doBasicLogout(GenericValue userLogin, HttpServletRequest requ Debug.logError(e, MODULE); } } - if ("Y".equals(UtilProperties.getPropertyValue(SEC_PROPERTIES, "security.login.loginEventsAfterBasicLogin", "N"))) { - // run the after-login events - RequestHandler rh = RequestHandler.getRequestHandler(request.getSession().getServletContext()); - rh.runAfterLoginEvents(request, response); - } // setup some things that should always be there UtilHttp.setInitialRequestInfo(request);