Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nouiWithSpringMVC
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
gechengyang
nouiWithSpringMVC
Commits
cd4c0d10
Commit
cd4c0d10
authored
Mar 10, 2021
by
WeiCong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整登陆日志打印级别
parent
3f54223f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
DatabaseLoginContextForELCS.java
...com/brilliance/eibs/auth/DatabaseLoginContextForELCS.java
+15
-5
No files found.
src/main/java/cn/com/brilliance/eibs/auth/DatabaseLoginContextForELCS.java
View file @
cd4c0d10
...
...
@@ -235,7 +235,9 @@ public class DatabaseLoginContextForELCS extends AbstractLoginContext {
ctx
.
logout
(
DataType
.
USER_NAME
,
userName
);
this
.
_userName
=
userName
;
}
log
.
warn
(
String
.
format
(
"%s,userName=[%s]"
,
logText
,
userName
));
if
(
log
.
isDebugEnabled
()){
log
.
debug
(
String
.
format
(
"%s,userName=[%s]"
,
logText
,
userName
));
}
errorText
=
flag
?
""
:
getI18nValue
(
type
);
this
.
flag
=
flag
;
return
flag
;
...
...
@@ -280,7 +282,9 @@ public class DatabaseLoginContextForELCS extends AbstractLoginContext {
// log.info("password反转回来==="+password+",userName===="+userName);
String
encodedPassword
=
passwordFilter
.
encode
(
password
,
userName
).
trim
();
// log.info("password国密解析==="+encodedPassword);
log
.
debug
(
"password(input/db)"
+
dbPassword
+
"\t"
+
encodedPassword
);
if
(
log
.
isDebugEnabled
()){
log
.
debug
(
"password(input/db)"
+
dbPassword
+
"\t"
+
encodedPassword
);
}
if
(!
encodedPassword
.
equals
(
dbPassword
))
return
"[Database: NOT Match.]"
;
return
null
;
...
...
@@ -326,7 +330,9 @@ public class DatabaseLoginContextForELCS extends AbstractLoginContext {
return
setLogon
(
true
,
userName
,
null
,
"游客成功登录."
,
stmt
,
rs
);
}
userId
=
rs
.
getString
(
1
);
log
.
debug
(
"userId="
+
userId
);
if
(
log
.
isDebugEnabled
()){
log
.
debug
(
"userId="
+
userId
);
}
String
dbPassword
=
rs
.
getString
(
2
);
int
faultCount
=
rs
.
getInt
(
3
);
String
userState
=
rs
.
getString
(
4
);
// 0:正常;1:注销;2:锁定
...
...
@@ -374,7 +380,9 @@ public class DatabaseLoginContextForELCS extends AbstractLoginContext {
parameterMap
.
put
(
ERROR
,
ErrorCode
.
LOGIN_PWD_AME_INTERVAL
);
return
setLogon
(
true
,
userName
,
ErrorCode
.
LOGIN_PWD_AME_INTERVAL
.
getCode
(),
ErrorCode
.
LOGIN_PWD_AME_INTERVAL
.
getMessage
(),
stmt
,
rs
);
}
log
.
debug
(
"faultCount="
+
faultCount
);
if
(
log
.
isDebugEnabled
()){
log
.
debug
(
"faultCount="
+
faultCount
);
}
sql
=
"UPDATE usr SET fltcnt=?,sta=?,lstdattim=? WHERE inr=?"
;
stmt
=
conn
.
prepareStatement
(
sql
);
stmt
.
setInt
(
1
,
0
);
...
...
@@ -403,7 +411,9 @@ public class DatabaseLoginContextForELCS extends AbstractLoginContext {
@Override
public
boolean
auth
(
Connection
conn
,
Map
parameterMap
)
{
log
.
debug
(
"正在加载当前用户菜单."
);
if
(
log
.
isDebugEnabled
()){
log
.
debug
(
"正在加载当前用户菜单."
);
}
String
sql
=
""
;
ResultSet
rs
=
null
;
PreparedStatement
stmt
=
null
;
...
...
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