From 445efce2abf8310acc5b7bb652feef7968c86a2a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 22 Feb 2018 14:26:09 +0300 Subject: default database is h2 --- .../main/java/com/juick/www/controllers/SocialLogin.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'juick-www/src/main/java/com/juick/www/controllers') diff --git a/juick-www/src/main/java/com/juick/www/controllers/SocialLogin.java b/juick-www/src/main/java/com/juick/www/controllers/SocialLogin.java index 64d59b9f..674be157 100644 --- a/juick-www/src/main/java/com/juick/www/controllers/SocialLogin.java +++ b/juick-www/src/main/java/com/juick/www/controllers/SocialLogin.java @@ -66,9 +66,9 @@ public class SocialLogin { private static final Logger logger = LoggerFactory.getLogger(SocialLogin.class); - @Value("${facebook_appid}") + @Value("${facebook_appid:appid}") private String FACEBOOK_APPID; - @Value("${facebook_secret}") + @Value("${facebook_secret:secret}") private String FACEBOOK_SECRET; private static final String FACEBOOK_REDIRECT = "http://juick.com/_fblogin"; private static final String VK_REDIRECT = "http://juick.com/_vklogin"; @@ -77,15 +77,15 @@ public class SocialLogin { private ObjectMapper jsonMapper; private ServiceBuilder facebookBuilder, twitterBuilder, vkBuilder; - @Value("${twitter_consumer_key}") + @Value("${twitter_consumer_key:appid}") private String twitterConsumerKey; - @Value("${twitter_consumer_secret}") + @Value("${twitter_consumer_secret:secret}") private String twitterConsumerSecret; - @Value("${vk_appid}") + @Value("${vk_appid:appid}") private String VK_APPID; - @Value("${vk_secret}") + @Value("${vk_secret:secret}") private String VK_SECRET; - @Value("${telegram_token}") + @Value("${telegram_token:secret}") private String telegramToken; @Inject -- cgit v1.2.3