Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
shop-Mall
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
licc
shop-Mall
Commits
22703e21
Commit
22703e21
authored
Mar 17, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自测
parent
6bc45fc6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
LoginServiceImpl.java
.../java/cn/wisenergy/service/app/impl/LoginServiceImpl.java
+1
-1
LoginController.java
...n/wisenergy/web/admin/controller/app/LoginController.java
+2
-1
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/LoginServiceImpl.java
View file @
22703e21
...
...
@@ -51,7 +51,7 @@ public class LoginServiceImpl implements LoginService {
}
//1、检验验证码是否正确
String
key
=
""
;
String
key
=
StringUtil
.
formatKeyWithPrefix
(
Constants
.
RedisKey
.
PROJECT_PRIFIX
,
Constants
.
RedisKey
.
SMS_PRIFIX
,
userVo
.
getUserId
(),
0
+
""
)
;
String
redisCode
=
redisUtils
.
getValue
(
key
);
if
(
StringUtils
.
isBlank
(
redisCode
)
||
!
userVo
.
getSms
().
equals
(
redisCode
))
{
return
R
.
error
(
"验证码错误!"
);
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/LoginController.java
View file @
22703e21
...
...
@@ -265,7 +265,8 @@ public class LoginController {
}
//1、检验验证码是否正确
String
key
=
""
;
String
key
=
StringUtil
.
formatKeyWithPrefix
(
Constants
.
RedisKey
.
PROJECT_PRIFIX
,
Constants
.
RedisKey
.
SMS_PRIFIX
,
userVo
.
getUserId
(),
Constants
.
Sms
.
CodeType
.
LOGIN_OR_REGISTER
+
""
);
String
redisCode
=
redisUtils
.
getValue
(
key
);
if
(
StringUtils
.
isBlank
(
redisCode
)
||
!
userVo
.
getSms
().
equals
(
redisCode
))
{
return
R
.
error
(
"验证码错误!"
);
...
...
Write
Preview
Markdown
is supported
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