用户找回密码
This commit is contained in:
parent
b20b33ee53
commit
9f5be5500d
@ -105,6 +105,7 @@ public class UserController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
//找回妈咪
|
||||||
@RequestMapping("/findThePassword")
|
@RequestMapping("/findThePassword")
|
||||||
public Map<String,Object> findThePassword(User user,HttpSession session){
|
public Map<String,Object> findThePassword(User user,HttpSession session){
|
||||||
Map<String,Object> map=new HashMap<>();
|
Map<String,Object> map=new HashMap<>();
|
||||||
@ -113,11 +114,11 @@ public class UserController {
|
|||||||
map.put("msg","无此邮箱");
|
map.put("msg","无此邮箱");
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
// 比较验证码
|
// 比较验证码
|
||||||
// if (!user.getActiveCode().equals((String) session.getAttribute(user.getUserEmail()))) {
|
if (!user.getActiveCode().equals((String) session.getAttribute(user.getUserEmail()))) {
|
||||||
// map.put("msg","验证码不正确") ;
|
map.put("msg","验证码不正确") ;
|
||||||
// return map;
|
return map;
|
||||||
// }
|
}
|
||||||
|
|
||||||
|
|
||||||
if (user1 != null) {
|
if (user1 != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user