diff options
author | Vitaly Takmazov | 2018-11-30 13:47:56 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-11-30 13:47:56 +0300 |
commit | 4af8dfbaf86cdfd31b466dec3c10060090bf46b7 (patch) | |
tree | d429994ebda69491176d8cf7ff0d10bb516ec67e /src/main/java/com/juick/server/www/controllers | |
parent | 4034b885d3e934eb45c87b5377579fbbeb909544 (diff) |
XMPP link error page
Diffstat (limited to 'src/main/java/com/juick/server/www/controllers')
-rw-r--r-- | src/main/java/com/juick/server/www/controllers/SignUp.java | 6 |
1 files changed, 6 insertions, 0 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 e33b16cd0..30223952a 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"; } |