Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Linnea Samila
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a946dbb0
authored
Feb 13, 2018
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Verify that there exists a session on normal user entry
1 parent
98baa0d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
code/moya-web/src/main/java/fi/codecrew/moya/HostnameFilter.java
code/moya-web/src/main/java/fi/codecrew/moya/HostnameFilter.java
View file @
a946dbb
...
...
@@ -196,7 +196,10 @@ public class HostnameFilter implements Filter {
}
}
if
(
httpRequest
.
getUserPrincipal
()
==
null
)
{
// If we are still unlogged, ie we are a normal user
if
(
httpRequest
.
getUserPrincipal
()
==
null
)
{
// Verify that we have an open session.
httpRequest
.
getSession
(
true
);
try
{
authtype
=
AuthType
.
ANON
;
httpRequest
.
login
(
User
.
ANONYMOUS_LOGINNAME
+
'@'
+
hostname
,
null
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment