diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/juick/server/www/controllers/SignUp.java | 7 |
1 files changed, 6 insertions, 1 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 e4ea69586..e33b16cd0 100644 --- a/src/main/java/com/juick/server/www/controllers/SignUp.java +++ b/src/main/java/com/juick/server/www/controllers/SignUp.java @@ -96,7 +96,8 @@ public class SignUp { @RequestParam String hash, @RequestParam String action, @RequestParam(required = false) String username, - @RequestParam(required = false) String password) { + @RequestParam(required = false) String password, + ModelMap modelMap) { com.juick.User visitor = UserUtils.getCurrentUser(); int uid = 0; @@ -152,6 +153,10 @@ public class SignUp { emailService.addEmail(uid, email); emailService.deleteAuthCode(hash); } else { + if (type.equals("xmpp")) { + modelMap.addAttribute("result", "XMPP support is disabled for new users"); + return "views/settings_result"; + } throw new HttpBadRequestException(); } } |