|
@@ -1267,9 +1267,13 @@ func (this *SysAdminController) ResetPass() {
|
|
|
_ = utils.Rc.LPush(utils.CACHE_SYNC_ADMIN, syncData)
|
|
|
}
|
|
|
|
|
|
- // 清除系统用户列表缓存key
|
|
|
+ // 清除系统用户列表缓存key及异常登录缓存
|
|
|
_ = utils.Rc.Delete(utils.CACHE_KEY_ADMIN)
|
|
|
_ = utils.Rc.Delete(utils.CACHE_KEY_ADMIN_ID)
|
|
|
+ abnormalKey := fmt.Sprint(utils.CACHE_ABNORMAL_LOGIN, adminInfo.AdminName)
|
|
|
+ errPassKey := fmt.Sprint(utils.CACHE_LOGIN_ERR_PASS, adminInfo.AdminName)
|
|
|
+ _ = utils.Rc.Delete(abnormalKey)
|
|
|
+ _ = utils.Rc.Delete(errPassKey)
|
|
|
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|