疯狂的狮子Li
3 years ago
committed by
Gitee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with
2 additions and
1 deletions
-
ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java
|
|
@ -17,6 +17,7 @@ import com.ruoyi.common.exception.user.CaptchaExpireException; |
|
|
|
import com.ruoyi.common.exception.user.UserPasswordNotMatchException; |
|
|
|
import com.ruoyi.common.utils.DateUtils; |
|
|
|
import com.ruoyi.common.utils.MessageUtils; |
|
|
|
import com.ruoyi.common.utils.StringUtils; |
|
|
|
import com.ruoyi.common.utils.ServletUtils; |
|
|
|
import com.ruoyi.common.utils.ip.IpUtils; |
|
|
|
import com.ruoyi.framework.manager.AsyncManager; |
|
|
@ -102,7 +103,7 @@ public class SysLoginService |
|
|
|
*/ |
|
|
|
public void validateCaptcha(String username, String code, String uuid) |
|
|
|
{ |
|
|
|
String verifyKey = Constants.CAPTCHA_CODE_KEY + uuid; |
|
|
|
String verifyKey = Constants.CAPTCHA_CODE_KEY + StringUtils.nvl(uuid, ""); |
|
|
|
String captcha = redisCache.getCacheObject(verifyKey); |
|
|
|
redisCache.deleteObject(verifyKey); |
|
|
|
if (captcha == null) |
|
|
|