diff options
Diffstat (limited to 'src/main/java/com/juick/www/controllers/SignUp.java')
-rw-r--r-- | src/main/java/com/juick/www/controllers/SignUp.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/juick/www/controllers/SignUp.java b/src/main/java/com/juick/www/controllers/SignUp.java index 9fc04dd5..8318dabd 100644 --- a/src/main/java/com/juick/www/controllers/SignUp.java +++ b/src/main/java/com/juick/www/controllers/SignUp.java @@ -23,13 +23,13 @@ import com.juick.util.UsernameTakenException; import com.juick.www.WebApp; import com.juick.service.EmailService; import com.juick.service.UserService; -import com.juick.service.security.annotation.Visitor; import com.juick.service.security.entities.JuickUser; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestParam; @@ -52,7 +52,7 @@ public class SignUp { @GetMapping("/signup") protected String doGet( - @Visitor User visitor, + @ModelAttribute User visitor, @RequestParam String type, @RequestParam String hash, ModelMap model) { if (hash.length() > 36 || !type.matches("^[a-zA-Z0-9\\-]+$") || !hash.matches("^[a-zA-Z0-9\\-]+$")) { @@ -91,7 +91,7 @@ public class SignUp { @PostMapping("/signup") protected String doPost( - @Visitor User visitor, + @ModelAttribute User visitor, @RequestParam String type, @RequestParam String hash, @RequestParam String action, |