Skip to content

Commit

Permalink
#51 Use redirect, in case of error.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhenke committed Dec 13, 2015
1 parent cfd2b66 commit e488d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/videoshop/controller/ShopController.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public String registerNew(@ModelAttribute("registrationForm") @Valid Registratio
BindingResult result) {

if (result.hasErrors()) {
return "register";
return "redirect:/register";
}

// (。◕‿◕。)
Expand Down

0 comments on commit e488d67

Please sign in to comment.