提交 7edca772 编写于 作者: Chongwen.jiang's avatar Chongwen.jiang

重置密码删除错误次数缓存

上级 f1de927d
流水线 #22593 已失败 于阶段
in 0 second
...@@ -142,6 +142,11 @@ public class PasswordServiceImpl implements PasswordService { ...@@ -142,6 +142,11 @@ public class PasswordServiceImpl implements PasswordService {
if(cacheClient.exists(lockKey)) { if(cacheClient.exists(lockKey)) {
cacheClient.del(lockKey); cacheClient.del(lockKey);
} }
// 删除账号错误次数缓存
String errorKey = Constants.PWD_ERROR_NUM_KEY.replace("{mobile}", request.getMobile());
if(cacheClient.exists(errorKey)) {
cacheClient.del(errorKey);
}
return result; return result;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册