From 4af8dfbaf86cdfd31b466dec3c10060090bf46b7 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 30 Nov 2018 13:47:56 +0300 Subject: XMPP link error page --- src/main/java/com/juick/server/www/controllers/SignUp.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/java/com/juick/server') 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 e33b16cd..30223952 100644 --- a/src/main/java/com/juick/server/www/controllers/SignUp.java +++ b/src/main/java/com/juick/server/www/controllers/SignUp.java @@ -129,6 +129,11 @@ public class SignUp { emailService.addEmail(uid, email); emailService.deleteAuthCode(hash); } else { + if (type.equals("xmpp")) { + modelMap.addAttribute("visitor", visitor); + modelMap.addAttribute("result", "XMPP support is disabled for new users"); + return "views/settings_result"; + } throw new HttpBadRequestException(); } } @@ -154,6 +159,7 @@ public class SignUp { emailService.deleteAuthCode(hash); } else { if (type.equals("xmpp")) { + modelMap.addAttribute("visitor", visitor); modelMap.addAttribute("result", "XMPP support is disabled for new users"); return "views/settings_result"; } -- cgit v1.2.3