diff options
Diffstat (limited to 'src/main/java/com/juick/server/www/controllers')
-rw-r--r-- | src/main/java/com/juick/server/www/controllers/SignUp.java | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/main/java/com/juick/server/www/controllers/SignUp.java b/src/main/java/com/juick/server/www/controllers/SignUp.java index eac1c767..e4ea6958 100644 --- a/src/main/java/com/juick/server/www/controllers/SignUp.java +++ b/src/main/java/com/juick/server/www/controllers/SignUp.java @@ -22,7 +22,6 @@ import com.juick.server.util.UserUtils; import com.juick.server.www.WebApp; import com.juick.service.CrosspostService; import com.juick.service.EmailService; -import com.juick.service.MessengerService; import com.juick.service.UserService; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; @@ -46,8 +45,6 @@ public class SignUp { @Inject private CrosspostService crosspostService; @Inject - private MessengerService messengerService; - @Inject private EmailService emailService; @Inject private WebApp webApp; @@ -76,9 +73,6 @@ public class SignUp { case "durov": account = crosspostService.getTelegramNameByHash(hash); break; - case "messenger": - account = messengerService.getDisplayName(hash); - break; case "email": account = emailService.getEmailByAuthCode(hash); } @@ -128,8 +122,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' && userService.getAllJIDs(visitor).size() > 0 && crosspostService.setJIDUser(hash, uid)) - && !(type.charAt(0) == 'm' && messengerService.linkMessengerUser(hash, uid))) { + && !(type.charAt(0) == 'x' && userService.getAllJIDs(visitor).size() > 0 && crosspostService.setJIDUser(hash, uid))) { if (type.equals("email")) { String email = emailService.getEmailByAuthCode(hash); emailService.addEmail(uid, email); @@ -153,8 +146,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) == 'm' && messengerService.linkMessengerUser(hash, uid))) { + && !(type.charAt(0) == 'd' && crosspostService.setTelegramUser(hash, uid))) { if (type.equals("email")) { String email = emailService.getEmailByAuthCode(hash); emailService.addEmail(uid, email); |