diff --git a/prototype/src/main/java/org/hso/ecommerce/controller/shop/ShopIndexController.java b/prototype/src/main/java/org/hso/ecommerce/controller/shop/ShopIndexController.java index e660eb0..9d1e47a 100644 --- a/prototype/src/main/java/org/hso/ecommerce/controller/shop/ShopIndexController.java +++ b/prototype/src/main/java/org/hso/ecommerce/controller/shop/ShopIndexController.java @@ -34,8 +34,8 @@ public class ShopIndexController { boolean isLoggedIn = false; boolean hasOrders = false; - if (session != null && session.getAttribute("id") != null) { - long userId = (long) session.getAttribute("id"); + if (session != null && session.getAttribute("userId") != null) { + long userId = (long) session.getAttribute("userId"); isLoggedIn = true; }