コード例 #1
0
 @RequestMapping(value = "/resetPassword")
 //	@ResponseBody
 public ModelAndView resetPassword(HttpServletRequest request, Model model) {
   System.out.println("email=======" + request.getParameter("email"));
   String returnMessage = getPasswordService.resetPassword(request);
   model.addAttribute("getPasswordReturnMessage", returnMessage);
   return new ModelAndView("/login");
 }
コード例 #2
0
 @RequestMapping(value = "/getPassword", method = RequestMethod.GET)
 public ModelAndView getPassword(
     @RequestParam("sid") String sid,
     @RequestParam("email") String email,
     HttpServletRequest request,
     Model model) {
   String returnMessage = getPasswordService.getPassword(sid, email);
   if (returnMessage.contains("@")) {
     model.addAttribute("email", returnMessage);
     return new ModelAndView("/reset_password");
   } else {
     model.addAttribute("returnMessage", returnMessage);
     return new ModelAndView("/reset_password");
   }
 }
コード例 #3
0
 @RequestMapping(value = "/saveResetPassword")
 public ModelAndView saveResetPassword(HttpServletRequest request, Model model) {
   System.out.println("MMMMMMMMMMMMMMMMMMMMM");
   boolean isUpdate = getPasswordService.saveResetPassword(request);
   return new ModelAndView("/login");
 }