public String submit(String username, String email, String password,
CmsUserExt userExt, String captcha, String nextUrl,
HttpServletRequest request, HttpServletResponse response,
ModelMap model) throws IOException {
CmsSite site = CmsUtils.getSite(request);
CmsConfig config=site.getConfig();
WebErrors errors = validateSubmit(username, email, password, captcha,
site, request, response);
if (errors.hasErrors()) {
return FrontUtils.showError(request, response, model, errors);
}
String ip = RequestUtils.getIpAddr(request);
if(config.getEmailValidate()){
EmailSender sender = configMng.getEmailSender();
MessageTemplate msgTpl = configMng.getRegisterMessageTemplate();
if (sender == null) {
// 邮件服务器没有设置好
model.addAttribute("status", 4);