Commit bc21a908 authored by 王亮's avatar 王亮

delete session after reset password.

parent 87c79d03
......@@ -248,6 +248,7 @@ public class UserServiceImpl implements IUserService, IBaseController {
user.setCipherPassword(BctyptPasswordUtil.BCryptWithSalt(password));
user = userRepository.save(user);
stringRedisTemplate.expire("usercache:xyqbuser" + phoneNo, 1L, TimeUnit.MILLISECONDS);
sessionService.deleteByUserId(user.getId());
return BctyptPasswordUtil.BCryptCheckPw(password, user.getCipherPassword());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment