diff options
author | 2017-03-29 14:11:46 +0300 | |
---|---|---|
committer | 2017-03-29 14:11:46 +0300 | |
commit | 9f770c26d1e4f392d591bf35886e3dcc7371d64f (patch) | |
tree | 5fccb22b5c01b40d81a111de61e5fbf27f55a18f /juick-www/src/main/java/com/juick/www/controllers/Home.java | |
parent | 889a5e543d33e3305bccd77e52722da695e068f7 (diff) |
juick-www: Spring Security
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/controllers/Home.java')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/controllers/Home.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/Home.java b/juick-www/src/main/java/com/juick/www/controllers/Home.java index 405a4bd6..4f597d5a 100644 --- a/juick-www/src/main/java/com/juick/www/controllers/Home.java +++ b/juick-www/src/main/java/com/juick/www/controllers/Home.java @@ -20,6 +20,7 @@ package com.juick.www.controllers; import com.juick.service.AdsService; import com.juick.service.MessagesService; import com.juick.service.UserService; +import com.juick.util.UserUtils; import com.juick.util.WebUtils; import com.juick.www.Utils; import com.juick.www.WebApp; @@ -100,7 +101,7 @@ public class Home { if (tag != null) { Utils.sendPermanentRedirect(response, "/tag/" + URLEncoder.encode(tag, CharEncoding.UTF_8)); } - com.juick.User visitor = webApp.getVisitorUser(request, response); + com.juick.User visitor = UserUtils.getCurrentUser(); int paramBefore = NumberUtils.toInt(request.getParameter("before"), 0); String paramSearch = request.getParameter("search"); |