Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
api
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
首航-临时账号
api
Commits
46b4e907
Commit
46b4e907
authored
Sep 24, 2019
by
zhangyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登陆修改
parent
11be1cd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
UserController.java
src/com/ejweb/modules/user/api/UserController.java
+7
-4
No files found.
src/com/ejweb/modules/user/api/UserController.java
View file @
46b4e907
...
@@ -145,14 +145,17 @@ public class UserController {
...
@@ -145,14 +145,17 @@ public class UserController {
LOG
.
debug
(
"[UserController login][STATUS_CODE_4102]总共用时:"
+
Util
.
getDurationTime
(
duration
));
LOG
.
debug
(
"[UserController login][STATUS_CODE_4102]总共用时:"
+
Util
.
getDurationTime
(
duration
));
return
responseBean
;
return
responseBean
;
}
}
String
blackUsername
=
redisUtils
.
get
(
"black_username:"
+
loginBean
.
getLoginName
(),
indexDb
);
if
(
null
!=
redisUsername
&&
Integer
.
parseInt
(
redisUsername
)
>=
6
)
{
if
(
null
!=
redisUsername
&&
Integer
.
parseInt
(
redisUsername
)
>=
5
&&
StringUtils
.
isEmpty
(
blackUsername
)
)
{
redisUtils
.
set
(
"black_username:"
+
loginBean
.
getLoginName
(),
1
,
indexDb
);
redisUtils
.
set
(
"black_username:"
+
loginBean
.
getLoginName
(),
1
,
indexDb
);
redisUtils
.
expire
(
"black_username:"
+
loginBean
.
getLoginName
(),
300
,
indexDb
);
}
else
if
(
blackUsername
!=
null
&&
Integer
.
parseInt
(
blackUsername
)
==
1
){
redisUtils
.
incrNotResetExpireTime
(
"black_username:"
+
loginBean
.
getLoginName
(),
indexDb
);
redisUtils
.
expire
(
"black_username:"
+
loginBean
.
getLoginName
(),
300
,
indexDb
);
}
if
(
blackUsername
!=
null
){
responseBean
.
setStatus
(
ErrorCode
.
STATUS_CODE_4101
);
responseBean
.
setStatus
(
ErrorCode
.
STATUS_CODE_4101
);
responseBean
.
setMessage
(
"该帐号已禁止登录"
);
responseBean
.
setMessage
(
"该帐号已禁止登录"
);
checkIpLimit
(
userIp
);
checkIpLimit
(
userIp
);
return
responseBean
;
return
responseBean
;
}
}
...
...
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