Skip to content
Snippets Groups Projects
Commit 5f727e5e authored by Piotr Gawron's avatar Piotr Gawron
Browse files

session should expire when expires is before current date

parent 4b38b27a
No related branches found
No related tags found
1 merge request!76session should expire when expires is before current date
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment