From 645fac47b98e57ca1cf891493811e4db6770ba49 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 20 Sep 2018 09:43:25 +0300 Subject: do not allow to add first jid --- juick-server/src/main/java/com/juick/server/www/controllers/SignUp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-server/src/main/java/com/juick') diff --git a/juick-server/src/main/java/com/juick/server/www/controllers/SignUp.java b/juick-server/src/main/java/com/juick/server/www/controllers/SignUp.java index 6d72aecc..6a4fe063 100644 --- a/juick-server/src/main/java/com/juick/server/www/controllers/SignUp.java +++ b/juick-server/src/main/java/com/juick/server/www/controllers/SignUp.java @@ -124,7 +124,7 @@ public class SignUp { if (!(type.charAt(0) == 'f' && crosspostService.setFacebookUser(hash, uid)) && !(type.charAt(0) == 'v' && crosspostService.setVKUser(hash, uid)) && !(type.charAt(0) == 'd' && crosspostService.setTelegramUser(hash, uid)) - && !(type.charAt(0) == 'x' && crosspostService.setJIDUser(hash, uid)) + && !(type.charAt(0) == 'x' && userService.getAllJIDs(visitor).size() > 0 && crosspostService.setJIDUser(hash, uid)) && !(type.charAt(0) == 'm' && messengerService.linkMessengerUser(hash, uid))) { if (type.equals("email")) { String email = emailService.getEmailByAuthCode(hash); -- cgit v1.2.3