Commit 5f727e5e authored by Piotr Gawron's avatar Piotr Gawron
Browse files

session should expire when expires is before current date

parent 4b38b27a
......@@ -585,7 +585,7 @@ public class UserBean extends AbstractManagedBean {
}
Calendar now = Calendar.getInstance();
now.add(Calendar.MINUTE, -1);
if (authenticationToken.getExpires().after(now)) {
if (authenticationToken.getExpires().before(now)) {
authenticationToken = getUserService().login(Configuration.ANONYMOUS_LOGIN, "");
}
return authenticationToken;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment