From afc22a547e36564f70b58e551e24760191506b09 Mon Sep 17 00:00:00 2001 From: jendib Date: Fri, 26 Aug 2016 20:34:23 +0200 Subject: [PATCH] Closes #112: Don't update auth token on each request --- .../java/com/sismics/util/filter/HeaderBasedSecurityFilter.java | 1 - .../java/com/sismics/util/filter/TokenBasedSecurityFilter.java | 1 - 2 files changed, 2 deletions(-) diff --git a/docs-web-common/src/main/java/com/sismics/util/filter/HeaderBasedSecurityFilter.java b/docs-web-common/src/main/java/com/sismics/util/filter/HeaderBasedSecurityFilter.java index 4fa6ede6..33733f25 100644 --- a/docs-web-common/src/main/java/com/sismics/util/filter/HeaderBasedSecurityFilter.java +++ b/docs-web-common/src/main/java/com/sismics/util/filter/HeaderBasedSecurityFilter.java @@ -43,5 +43,4 @@ public class HeaderBasedSecurityFilter extends SecurityFilter { } return new UserDao().getActiveByUsername(username); } - } \ No newline at end of file diff --git a/docs-web-common/src/main/java/com/sismics/util/filter/TokenBasedSecurityFilter.java b/docs-web-common/src/main/java/com/sismics/util/filter/TokenBasedSecurityFilter.java index b65095e1..1599cd9e 100644 --- a/docs-web-common/src/main/java/com/sismics/util/filter/TokenBasedSecurityFilter.java +++ b/docs-web-common/src/main/java/com/sismics/util/filter/TokenBasedSecurityFilter.java @@ -104,7 +104,6 @@ public class TokenBasedSecurityFilter extends SecurityFilter { return null; } - authTokenDao.updateLastConnectionDate(authToken.getId()); return new UserDao().getById(authToken.getUserId()); } }