* @return
*/
@RequestMapping(value = "/password/check/{tokenStr}", method = RequestMethod.GET)
public ModelAndView checkFindPswdToken(@PathVariable String tokenStr) {
ModelAndView mav = new ModelAndView();
EmailToken token = emailTokenService.checkToken(tokenStr);
if (token != null) {
WebHelper.setSessionAttribute(null, Constant.SESSION_FIND_PSWD_STAT, FindPswdStat.CHECKED_TOKEN);
User user = accountInfoService.getAccountInfoByUserID(token.getUserId());
WebHelper.setSessionAttribute(null, Constant.SESSION_FIND_PSWD_USER, user);
WebHelper.setSessionAttribute(null, Constant.SESSION_FIND_PSWD_CHECKED_TOKEN_ID, token.getId());
mav.setViewName(ViewPaths.USER_RESETPASSWORD);
} else {
// 验证出错
mav.addObject("errorMessage","验证出错<br>可能由以下几个原因:<br>1.验证码输入出错;<br>2.验证码已经过期(24小时);<br>请重试,谢谢!<br>");
mav.setViewName(ViewPaths.USER_FINDPSWDREQUEST);