正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -17,6 +17,7 @@ import com.ruoyi.common.exception.user.CaptchaExpireException; | @@ -17,6 +17,7 @@ import com.ruoyi.common.exception.user.CaptchaExpireException; | ||
| 17 | import com.ruoyi.common.exception.user.UserPasswordNotMatchException; | 17 | import com.ruoyi.common.exception.user.UserPasswordNotMatchException; |
| 18 | import com.ruoyi.common.utils.DateUtils; | 18 | import com.ruoyi.common.utils.DateUtils; |
| 19 | import com.ruoyi.common.utils.MessageUtils; | 19 | import com.ruoyi.common.utils.MessageUtils; |
| 20 | +import com.ruoyi.common.utils.StringUtils; | ||
| 20 | import com.ruoyi.common.utils.ServletUtils; | 21 | import com.ruoyi.common.utils.ServletUtils; |
| 21 | import com.ruoyi.common.utils.ip.IpUtils; | 22 | import com.ruoyi.common.utils.ip.IpUtils; |
| 22 | import com.ruoyi.framework.manager.AsyncManager; | 23 | import com.ruoyi.framework.manager.AsyncManager; |
| @@ -102,7 +103,7 @@ public class SysLoginService | @@ -102,7 +103,7 @@ public class SysLoginService | ||
| 102 | */ | 103 | */ |
| 103 | public void validateCaptcha(String username, String code, String uuid) | 104 | public void validateCaptcha(String username, String code, String uuid) |
| 104 | { | 105 | { |
| 105 | - String verifyKey = Constants.CAPTCHA_CODE_KEY + uuid; | 106 | + String verifyKey = Constants.CAPTCHA_CODE_KEY + StringUtils.nvl(uuid, ""); |
| 106 | String captcha = redisCache.getCacheObject(verifyKey); | 107 | String captcha = redisCache.getCacheObject(verifyKey); |
| 107 | redisCache.deleteObject(verifyKey); | 108 | redisCache.deleteObject(verifyKey); |
| 108 | if (captcha == null) | 109 | if (captcha == null) |
-
请 注册 或 登录 后发表评论