Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
ofbiz-directcontrolservlet
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
74559e91
authored
2014-09-18 15:21:17 +0300
by
Andreyev Oleg
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Lower case user login id when looking for UserLogin (Ref. #4079)
1 parent
50cfb506
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
src/com/brainfood/ofbiz/DirectControlServlet.java
src/com/brainfood/ofbiz/DirectControlServlet.java
View file @
74559e9
...
...
@@ -189,13 +189,14 @@ public class DirectControlServlet extends HttpServlet {
)
);
if
(
authTokenEntity
!=
null
&&
authTokenEntity
.
get
(
"userLoginId"
)
!=
null
)
{
if
(
authTokenEntity
!=
null
)
{
String
userLoginId
=
authTokenEntity
.
getString
(
"userLoginId"
);
if
(
UtilValidate
.
isNotEmpty
(
userLoginId
))
{
GenericValue
userLogin
=
EntityUtil
.
getFirst
(
delegator
.
findList
(
"UserLogin"
,
EntityCondition
.
makeCondition
(
"userLoginId"
,
EntityOperator
.
EQUALS
,
authTokenEntity
.
get
(
"userLoginId"
)),
userLoginId
.
toLowerCase
(
)),
null
,
null
,
null
,
true
));
if
(
userLogin
!=
null
)
{
context
.
put
(
"userLogin"
,
userLogin
);
...
...
@@ -207,6 +208,7 @@ public class DirectControlServlet extends HttpServlet {
}
}
}
}
Debug
.
logInfo
(
"USERLOGIN "
+
context
.
get
(
"userLogin"
)
+
" AUTHTOKEN "
+
authToken
,
module
);
...
...
Please
register
or
sign in
to post a comment