aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-30 13:47:56 +0300
committerGravatar Vitaly Takmazov2018-11-30 13:47:56 +0300
commit4af8dfbaf86cdfd31b466dec3c10060090bf46b7 (patch)
treed429994ebda69491176d8cf7ff0d10bb516ec67e /src/main/java/com/juick
parent4034b885d3e934eb45c87b5377579fbbeb909544 (diff)
XMPP link error page
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r--src/main/java/com/juick/server/www/controllers/SignUp.java6
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 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";
}