From 4f9cd72d68ad45cc2071e3294fa19ea7b40a3175 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Fri, 31 Oct 2014 20:47:26 +0100 Subject: [PATCH] [Bugfix] fixed bug where certificate.lastAccess was not set after login --- .../main/java/li/strolch/rest/DefaultStrolchSessionHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/li.strolch.rest/src/main/java/li/strolch/rest/DefaultStrolchSessionHandler.java b/li.strolch.rest/src/main/java/li/strolch/rest/DefaultStrolchSessionHandler.java index c527bd4e3..0944dc19f 100644 --- a/li.strolch.rest/src/main/java/li/strolch/rest/DefaultStrolchSessionHandler.java +++ b/li.strolch.rest/src/main/java/li/strolch/rest/DefaultStrolchSessionHandler.java @@ -106,6 +106,7 @@ public class DefaultStrolchSessionHandler extends StrolchComponent implements St synchronized (this.certificateMap) { Certificate certificate = this.privilegeHandler.authenticate(username, password); + certificate.setLastAccess(System.currentTimeMillis()); this.certificateMap.put(certificate.getAuthToken(), certificate); logger.info(this.certificateMap.size() + " sessions currently active.");