Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
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
liyang
sts网站
Commits
a9bcfc66
Unverified
Commit
a9bcfc66
authored
Dec 10, 2023
by
也曾为你像超人
Committed by
Gitee
Dec 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
密码输入错误时,登录日志重复
Signed-off-by:
也曾为你像超人
<
1553592282@qq.com
>
parent
36b900ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
SysPasswordService.java
...a/com/ruoyi/framework/web/service/SysPasswordService.java
+0
-4
No files found.
ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysPasswordService.java
View file @
a9bcfc66
...
@@ -60,16 +60,12 @@ public class SysPasswordService
...
@@ -60,16 +60,12 @@ public class SysPasswordService
if
(
retryCount
>=
Integer
.
valueOf
(
maxRetryCount
).
intValue
())
if
(
retryCount
>=
Integer
.
valueOf
(
maxRetryCount
).
intValue
())
{
{
AsyncManager
.
me
().
execute
(
AsyncFactory
.
recordLogininfor
(
username
,
Constants
.
LOGIN_FAIL
,
MessageUtils
.
message
(
"user.password.retry.limit.exceed"
,
maxRetryCount
,
lockTime
)));
throw
new
UserPasswordRetryLimitExceedException
(
maxRetryCount
,
lockTime
);
throw
new
UserPasswordRetryLimitExceedException
(
maxRetryCount
,
lockTime
);
}
}
if
(!
matches
(
user
,
password
))
if
(!
matches
(
user
,
password
))
{
{
retryCount
=
retryCount
+
1
;
retryCount
=
retryCount
+
1
;
AsyncManager
.
me
().
execute
(
AsyncFactory
.
recordLogininfor
(
username
,
Constants
.
LOGIN_FAIL
,
MessageUtils
.
message
(
"user.password.retry.limit.count"
,
retryCount
)));
redisCache
.
setCacheObject
(
getCacheKey
(
username
),
retryCount
,
lockTime
,
TimeUnit
.
MINUTES
);
redisCache
.
setCacheObject
(
getCacheKey
(
username
),
retryCount
,
lockTime
,
TimeUnit
.
MINUTES
);
throw
new
UserPasswordNotMatchException
();
throw
new
UserPasswordNotMatchException
();
}
}
...
...
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