aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-28 17:56:43 +0300
committerGravatar Vitaly Takmazov2018-11-28 17:56:43 +0300
commitd7f381dc53937f4b15156c51cb60feaeb745d0ef (patch)
tree527ce6ab6b16fe221b020ee383c01b34553f6541 /src/main/java/com/juick/server
parent7b97f3df5a5c31c5d85ee71c902fa9bf979ffc54 (diff)
Drop unused Messenger service
Diffstat (limited to 'src/main/java/com/juick/server')
-rw-r--r--src/main/java/com/juick/server/www/controllers/SignUp.java12
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 eac1c7677..e4ea69586 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);