diff options
author | Vitaly Takmazov | 2016-06-27 10:39:24 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-06-27 10:39:24 +0300 |
commit | 0d93073c6988a22246db61a59b97c2fd7c9f462b (patch) | |
tree | d5f27cdb9a4fe51690f7af067608a9bee62087e3 /src/main/java/com/juick/http/www/Utils.java | |
parent | 2d7f61242de54b0c0670bac1953e45ee18d9ecec (diff) | |
parent | 53fb0b3e0e790df007a198deef21c115ed236b3e (diff) |
merge
Diffstat (limited to 'src/main/java/com/juick/http/www/Utils.java')
-rw-r--r-- | src/main/java/com/juick/http/www/Utils.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/juick/http/www/Utils.java b/src/main/java/com/juick/http/www/Utils.java index 931e2c21..ab721020 100644 --- a/src/main/java/com/juick/http/www/Utils.java +++ b/src/main/java/com/juick/http/www/Utils.java @@ -17,6 +17,8 @@ */ package com.juick.http.www; +import org.springframework.jdbc.core.JdbcTemplate; + import java.io.BufferedReader; import java.io.FileOutputStream; import java.io.IOException; @@ -77,7 +79,7 @@ public class Utils { return attachmentFName; } - public static com.juick.User getVisitorUser(Connection sql, HttpServletRequest request, HttpServletResponse response) { + public static com.juick.User getVisitorUser(JdbcTemplate sql, HttpServletRequest request, HttpServletResponse response) { String hash = getCookie(request, "hash"); if (hash != null) { com.juick.User visitor = com.juick.server.UserQueries.getUserByHash(sql, hash); |