Commit a946dbb0 by Tuomas Riihimäki

Verify that there exists a session on normal user entry

1 parent 98baa0d0
......@@ -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);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!