Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[bugfix] Wrong timeout check: login tokens timed out immedately. They…

… should remain valid for a few seconds or the user gets logged out too quickly if requests come in with a delay.
  • Loading branch information...
commit b6c86a15bbe852006861e739feb4c4c777c70ab3 1 parent 0da9e23
@wolfgangmm wolfgangmm authored
View
2  extensions/modules/src/org/exist/xquery/modules/persistentlogin/PersistentLogin.java
@@ -199,7 +199,7 @@ private void timeoutCheck() {
long now = System.currentTimeMillis();
for (Iterator<Map.Entry<String, Long>> i = invalidatedTokens.entrySet().iterator(); i.hasNext(); ) {
Map.Entry<String, Long> entry = i.next();
- if (entry.getValue() > now) {
+ if (entry.getValue() < now) {
i.remove();
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.