用户找回密码

This commit is contained in:
Zhang Liguo 2023-12-22 00:15:21 +08:00
parent b20b33ee53
commit 9f5be5500d

View File

@ -105,6 +105,7 @@ public class UserController {
}
}
//找回妈咪
@RequestMapping("/findThePassword")
public Map<String,Object> findThePassword(User user,HttpSession session){
Map<String,Object> map=new HashMap<>();
@ -113,11 +114,11 @@ public class UserController {
map.put("msg","无此邮箱");
return map;
}
// 比较验证码
// if (!user.getActiveCode().equals((String) session.getAttribute(user.getUserEmail()))) {
// map.put("msg","验证码不正确") ;
// return map;
// }
// 比较验证码
if (!user.getActiveCode().equals((String) session.getAttribute(user.getUserEmail()))) {
map.put("msg","验证码不正确") ;
return map;
}
if (user1 != null) {