Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
Overview
Overview
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
吴迪
gs1-office-web-sit
Commits
43e050c5
Commit
43e050c5
authored
Dec 15, 2021
by
ZhangYunfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加登录时图形验证码校验
parent
9cd35792
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
LogLoginController.java
.../office/modules/manage/controller/LogLoginController.java
+2
-2
DomesticCodeVo.java
...a/io/office/modules/manage/vo/request/DomesticCodeVo.java
+5
-0
No files found.
src/main/java/io/office/modules/manage/controller/LogLoginController.java
View file @
43e050c5
...
@@ -51,11 +51,11 @@ public class LogLoginController {
...
@@ -51,11 +51,11 @@ public class LogLoginController {
@Login
@Login
// @RequiresPermissions("manage:member:list")
// @RequiresPermissions("manage:member:list")
public
R
login
(
@RequestBody
Map
<
String
,
Object
>
params
,
HttpServletRequest
request
,
HttpServletResponse
response
){
public
R
login
(
@RequestBody
Map
<
String
,
Object
>
params
,
HttpServletRequest
request
,
HttpServletResponse
response
){
/*DomesticCodeVo domesticCodeVo = new DomesticCodeVo(
);
DomesticCodeVo
domesticCodeVo
=
new
DomesticCodeVo
(
params
.
get
(
"uuid"
).
toString
(),
params
.
get
(
"captcha"
).
toString
()
);
boolean
captcha
=
sysCaptchaService
.
validate
(
domesticCodeVo
.
getUuid
(),
domesticCodeVo
.
getCaptcha
());
boolean
captcha
=
sysCaptchaService
.
validate
(
domesticCodeVo
.
getUuid
(),
domesticCodeVo
.
getCaptcha
());
if
(!
captcha
){
if
(!
captcha
){
return
R
.
error
(
"验证码不正确"
);
return
R
.
error
(
"验证码不正确"
);
}
*/
}
return
R
.
ok
().
put
(
"data"
,
logLoginService
.
login
(
params
,
request
,
response
));
return
R
.
ok
().
put
(
"data"
,
logLoginService
.
login
(
params
,
request
,
response
));
}
}
...
...
src/main/java/io/office/modules/manage/vo/request/DomesticCodeVo.java
View file @
43e050c5
...
@@ -17,6 +17,11 @@ public class DomesticCodeVo implements Serializable {
...
@@ -17,6 +17,11 @@ public class DomesticCodeVo implements Serializable {
private
String
captcha
;
private
String
captcha
;
private
String
uuid
;
private
String
uuid
;
public
DomesticCodeVo
(
String
captcha
,
String
uuid
)
{
this
.
captcha
=
captcha
;
this
.
uuid
=
uuid
;
}
private
String
type
;
private
String
type
;
private
String
code
;
private
String
code
;
...
...
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