diff options
author | Vitaly Takmazov | 2016-07-10 22:46:56 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-07-10 22:46:56 +0300 |
commit | a0fa66fd9587407030d1c1ed3c5ee57d15c280fb (patch) | |
tree | 60c54455d7376868104c8e915b2ab8ef57340f39 /juick-www/src/main/java/com/juick/www/Utils.java | |
parent | cc192146f434263b73fb965e566e2829e70f209e (diff) |
fix getUserByHash usage
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/Utils.java')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/Utils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/www/Utils.java b/juick-www/src/main/java/com/juick/www/Utils.java index c98bddf9..e88e5b1b 100644 --- a/juick-www/src/main/java/com/juick/www/Utils.java +++ b/juick-www/src/main/java/com/juick/www/Utils.java @@ -77,7 +77,7 @@ public class Utils { String hash = getCookie(request, "hash"); if (hash != null) { com.juick.User visitor = com.juick.server.UserQueries.getUserByHash(sql, hash); - if (response != null && visitor != null) { + if (response != null && visitor.getUID() > 0) { response.setHeader("X-Username", visitor.getUName()); } return visitor; |