From efe270f4ec97a74c3513ec5ae27f64e90e8fa945 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 10 Aug 2016 12:34:01 +0300 Subject: juick-www: fix facebook login --- juick-www/src/main/java/com/juick/www/SignUp.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'juick-www/src/main/java/com/juick') diff --git a/juick-www/src/main/java/com/juick/www/SignUp.java b/juick-www/src/main/java/com/juick/www/SignUp.java index 865fc453..a67d049a 100644 --- a/juick-www/src/main/java/com/juick/www/SignUp.java +++ b/juick-www/src/main/java/com/juick/www/SignUp.java @@ -85,7 +85,7 @@ public class SignUp { out.println(""); out.println(""); out.println(""); - if (visitor != null) { + if (visitor.getUID() > 0) { out.println(""); } else { out.println("
Имя пользователя:
"); @@ -208,7 +208,12 @@ public class SignUp { private String getFacebookNameByHash(JdbcTemplate sql, String hash) { try { - return sql.queryForObject("SELECT fb_name,fb_link FROM facebook WHERE loginhash=?", String.class, hash); + List