From 037c1657a928b5cb1ef6ae05f7feafaff4095cbe Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 25 Jul 2012 21:05:01 +0200 Subject: [PATCH] Get current user from session correctly. --- src/main/java/net/pterodactylus/demoscenemusic/page/BasePage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/demoscenemusic/page/BasePage.java b/src/main/java/net/pterodactylus/demoscenemusic/page/BasePage.java index 88f5fc7..c24e6af 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/page/BasePage.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/page/BasePage.java @@ -57,7 +57,7 @@ public class BasePage extends TemplatePage { @Override protected void processTemplate(TemplateContext templateContext, ServletRequest request) throws RedirectException { super.processTemplate(templateContext, request); - templateContext.set("currentUser", request.getServletRequest().getAttribute("currentUser")); + templateContext.set("currentUser", request.getServletRequest().getSession().getAttribute("currentUser")); } } -- 2.7.4