diff options
author | Vitaly Takmazov | 2017-03-10 17:23:08 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-03-10 17:23:08 +0300 |
commit | c189636002c3245633730969ac00206e19a8105e (patch) | |
tree | 8f730b0e8e16cae2ce736bffc01d93298e488571 /juick-www/src/main/java/com/juick/www | |
parent | b1852c3d730fb58f5412303a11bcd4729535a711 (diff) |
juick-www: fix signup model
Diffstat (limited to 'juick-www/src/main/java/com/juick/www')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/controllers/SignUp.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/SignUp.java b/juick-www/src/main/java/com/juick/www/controllers/SignUp.java index 937a3242..ad148265 100644 --- a/juick-www/src/main/java/com/juick/www/controllers/SignUp.java +++ b/juick-www/src/main/java/com/juick/www/controllers/SignUp.java @@ -20,6 +20,7 @@ package com.juick.www.controllers; import com.juick.server.util.HttpBadRequestException; import com.juick.server.util.HttpForbiddenException; import com.juick.service.CrosspostService; +import com.juick.service.MessagesService; import com.juick.service.UserService; import com.juick.www.Utils; import com.juick.www.WebApp; @@ -46,6 +47,8 @@ public class SignUp { UserService userService; @Inject CrosspostService crosspostService; + @Inject + MessagesService messagesService; @RequestMapping(value = "/signup", method = RequestMethod.GET) @@ -83,6 +86,7 @@ public class SignUp { model.addAttribute("account", account); model.addAttribute("type", type); model.addAttribute("hash", hash); + model.addAttribute("readonly", messagesService.isReadonly()); return "views/signup"; } |