Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
d3410741
Commit
d3410741
authored
Jan 13, 2025
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化-fxj
parent
739d36a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
WxLoginAuthenticationFilter.java
...plus/v1/yifu/auth/filter/WxLoginAuthenticationFilter.java
+2
-2
No files found.
yifu-auth/src/main/java/com/yifu/cloud/plus/v1/yifu/auth/filter/WxLoginAuthenticationFilter.java
View file @
d3410741
...
@@ -41,7 +41,7 @@ public class WxLoginAuthenticationFilter extends AbstractAuthenticationProcessin
...
@@ -41,7 +41,7 @@ public class WxLoginAuthenticationFilter extends AbstractAuthenticationProcessin
private
WxConfig
wxConfig
;
private
WxConfig
wxConfig
;
public
WxLoginAuthenticationFilter
()
{
public
WxLoginAuthenticationFilter
()
{
super
(
new
AntPathRequestMatcher
(
SPRING_SECURITY_RESTFUL_LOGIN_URL
,
"
GE
T"
));
super
(
new
AntPathRequestMatcher
(
SPRING_SECURITY_RESTFUL_LOGIN_URL
,
"
POS
T"
));
}
}
/**
/**
*
*
...
@@ -54,7 +54,7 @@ public class WxLoginAuthenticationFilter extends AbstractAuthenticationProcessin
...
@@ -54,7 +54,7 @@ public class WxLoginAuthenticationFilter extends AbstractAuthenticationProcessin
@Override
@Override
public
Authentication
attemptAuthentication
(
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
AuthenticationException
{
public
Authentication
attemptAuthentication
(
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
AuthenticationException
{
if
(
!
postOnly
&&
!
request
.
getMethod
().
equals
(
"GE
T"
))
{
if
(
postOnly
&&
!
request
.
getMethod
().
equals
(
"POS
T"
))
{
throw
new
AuthenticationServiceException
(
throw
new
AuthenticationServiceException
(
"Authentication method not supported: "
+
request
.
getMethod
());
"Authentication method not supported: "
+
request
.
getMethod
());
}
}
...
...
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