用户找回密码
This commit is contained in:
parent
b20b33ee53
commit
9f5be5500d
@ -105,6 +105,7 @@ public class UserController {
|
||||
}
|
||||
|
||||
}
|
||||
//找回妈咪
|
||||
@RequestMapping("/findThePassword")
|
||||
public Map<String,Object> findThePassword(User user,HttpSession session){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
@ -114,10 +115,10 @@ public class UserController {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user