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
9d180d57
authored
2017-06-02 14:07:36 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Switch the authToken processing to look at the cookie, and not the
request parameters. Refs: #8700
1 parent
4be4d1f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
src/com/brainfood/ofbiz/DirectControlServlet.java
src/com/brainfood/ofbiz/DirectControlServlet.java
View file @
9d180d5
...
...
@@ -410,7 +410,16 @@ public class DirectControlServlet extends HttpServlet {
// If the sessionId parameter is set, attempt to look up the corresponding
// UserLogin and apply it to the service context
String
authToken
=
request
.
getParameter
(
"sessionId"
);
Cookie
[]
requestCookies
=
request
.
getCookies
();
String
authToken
=
null
;
if
(
requestCookies
!=
null
)
{
for
(
Cookie
requestCookie:
requestCookies
)
{
if
(
requestCookie
.
getName
().
equals
(
sessionTokenName
))
{
authToken
=
requestCookie
.
getValue
();
}
}
}
//String authToken = request.getParameter("sessionId");
if
(
authToken
!=
null
)
{
GenericValue
authTokenEntity
=
EntityUtil
.
getFirst
(
EntityUtil
.
filterByDate
(
...
...
Please
register
or
sign in
to post a comment