@RequestMapping(value="/signup", method=RequestMethod.POST)
public String signup(@Valid SignupForm form, BindingResult formBinding, WebRequest request) {
if (formBinding.hasErrors()) {
return null;
}
Account account = createAccount(form, formBinding);
if (account != null) {
SignInUtils.signin(account.getUsername());
providerSignInUtils.doPostSignUp(account.getUsername(), request);
return "redirect:/";
}
return null;
}