aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick/www/Main.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-09-21 22:05:11 +0300
committerGravatar Vitaly Takmazov2016-09-21 22:05:11 +0300
commit03b9bb980287d8f5578d1caec7a19e56f448e40f (patch)
treedbf4eca2245c63c2c36874c12d8f3f154c70c6b0 /juick-www/src/main/java/com/juick/www/Main.java
parent611cecae107980963979f71a756be3120000772a (diff)
move facebook credentials to config
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/Main.java')
-rw-r--r--juick-www/src/main/java/com/juick/www/Main.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/www/Main.java b/juick-www/src/main/java/com/juick/www/Main.java
index af8711ed..00ce6bb2 100644
--- a/juick-www/src/main/java/com/juick/www/Main.java
+++ b/juick-www/src/main/java/com/juick/www/Main.java
@@ -66,7 +66,7 @@ public class Main extends HttpServlet implements Stream.StreamListener {
User pagesUser = new User();
UserThread pagesUserThread = new UserThread();
NewMessage pagesNewMessage;
- FacebookLogin loginFacebook = new FacebookLogin();
+ FacebookLogin loginFacebook;
VKontakteLogin loginVK = new VKontakteLogin();
TwitterAuth twitterAuth;
SignUp signup = new SignUp();
@@ -96,6 +96,7 @@ public class Main extends HttpServlet implements Stream.StreamListener {
conf.getProperty("xmpp_password"), NumberUtils.toInt(conf.getProperty("xmpp_port", ""), 5347));
twitterAuth = new TwitterAuth(conf.getProperty("twitter_consumer_key"),
conf.getProperty("twitter_consumer_secret"));
+ loginFacebook = new FacebookLogin(conf.getProperty("facebook_appid"), conf.getProperty("facebook_secret"));
String tmpDir = conf.getProperty("upload_tmp_dir", "/var/www/juick.com/i/tmp/");
Utils.setTmpDir(tmpDir);
String imgPath = conf.getProperty("img_path", "/var/www/juick.com/i/");