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
Eladmin
Commits
665e3574
Commit
665e3574
authored
Mar 14, 2022
by
Zheng Jie
Browse files
update
parent
7cbca07b
Changes
1
Hide whitespace changes
Inline
Side-by-side
eladmin-system/src/main/java/me/zhengjie/modules/security/rest/AuthorizationController.java
View file @
665e3574
...
@@ -83,14 +83,14 @@ public class AuthorizationController {
...
@@ -83,14 +83,14 @@ public class AuthorizationController {
log
.
error
(
"验证码不存在或已过期"
);
log
.
error
(
"验证码不存在或已过期"
);
Map
<
String
,
Object
>
errorData
=
new
HashMap
<>(
2
);
Map
<
String
,
Object
>
errorData
=
new
HashMap
<>(
2
);
errorData
.
put
(
"message"
,
"验证码不存在或已过期"
);
errorData
.
put
(
"message"
,
"验证码不存在或已过期"
);
errorData
.
put
(
"
code
"
,
400
);
errorData
.
put
(
"
status
"
,
400
);
return
new
ResponseEntity
<>(
errorData
,
HttpStatus
.
BAD_REQUEST
);
return
new
ResponseEntity
<>(
errorData
,
HttpStatus
.
BAD_REQUEST
);
}
}
if
(
StringUtils
.
isBlank
(
authUser
.
getCode
())
||
!
authUser
.
getCode
().
equalsIgnoreCase
(
code
))
{
if
(
StringUtils
.
isBlank
(
authUser
.
getCode
())
||
!
authUser
.
getCode
().
equalsIgnoreCase
(
code
))
{
log
.
error
(
"验证码错误"
);
log
.
error
(
"验证码错误"
);
Map
<
String
,
Object
>
errorData
=
new
HashMap
<>(
2
);
Map
<
String
,
Object
>
errorData
=
new
HashMap
<>(
2
);
errorData
.
put
(
"message"
,
"验证码错误"
);
errorData
.
put
(
"message"
,
"验证码错误"
);
errorData
.
put
(
"
code
"
,
400
);
errorData
.
put
(
"
status
"
,
400
);
return
new
ResponseEntity
<>(
errorData
,
HttpStatus
.
BAD_REQUEST
);
return
new
ResponseEntity
<>(
errorData
,
HttpStatus
.
BAD_REQUEST
);
}
}
UsernamePasswordAuthenticationToken
authenticationToken
=
UsernamePasswordAuthenticationToken
authenticationToken
=
...
...
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