From: Niki Roo Date: Mon, 11 May 2020 22:18:29 +0000 (+0200) Subject: fix whitelist mode on web lib X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=28b6ea54709eeb435a00edea59db10b02acd431a;p=fanfix-swing.git fix whitelist mode on web lib --- diff --git a/src/be/nikiroo/fanfix/library/WebLibraryServer.java b/src/be/nikiroo/fanfix/library/WebLibraryServer.java index e0096fcc..a59fa345 100644 --- a/src/be/nikiroo/fanfix/library/WebLibraryServer.java +++ b/src/be/nikiroo/fanfix/library/WebLibraryServer.java @@ -231,6 +231,10 @@ public class WebLibraryServer implements Runnable { } if (login.isSuccess()) { + if (!login.isWl()) { + whitelist.clear(); + } + // refresh token session.getCookies().set(new Cookie("token", login.getToken(), "30; path=/"));