Commit 2e7b8b06 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '182-project-removal' into 'master'

session should expire when expires is before current date

Closes #182

See merge request !76
parents 4b38b27a 5f727e5e
......@@ -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