Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
84fe0737
Unverified
Commit
84fe0737
authored
Feb 16, 2022
by
疯狂的狮子Li
Committed by
Gitee
Feb 16, 2022
Browse files
update 更新uuid去除默认值 漏改
parent
81630a09
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java
View file @
84fe0737
...
@@ -17,6 +17,7 @@ import com.ruoyi.common.exception.user.CaptchaExpireException;
...
@@ -17,6 +17,7 @@ import com.ruoyi.common.exception.user.CaptchaExpireException;
import
com.ruoyi.common.exception.user.UserPasswordNotMatchException
;
import
com.ruoyi.common.exception.user.UserPasswordNotMatchException
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.MessageUtils
;
import
com.ruoyi.common.utils.MessageUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.common.utils.ServletUtils
;
import
com.ruoyi.common.utils.ServletUtils
;
import
com.ruoyi.common.utils.ip.IpUtils
;
import
com.ruoyi.common.utils.ip.IpUtils
;
import
com.ruoyi.framework.manager.AsyncManager
;
import
com.ruoyi.framework.manager.AsyncManager
;
...
@@ -102,7 +103,7 @@ public class SysLoginService
...
@@ -102,7 +103,7 @@ public class SysLoginService
*/
*/
public
void
validateCaptcha
(
String
username
,
String
code
,
String
uuid
)
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
);
String
captcha
=
redisCache
.
getCacheObject
(
verifyKey
);
redisCache
.
deleteObject
(
verifyKey
);
redisCache
.
deleteObject
(
verifyKey
);
if
(
captcha
==
null
)
if
(
captcha
==
null
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment