From 28b6ea54709eeb435a00edea59db10b02acd431a Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Tue, 12 May 2020 00:18:29 +0200 Subject: [PATCH] fix whitelist mode on web lib --- src/be/nikiroo/fanfix/library/WebLibraryServer.java | 4 ++++ 1 file changed, 4 insertions(+) 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=/")); -- 2.27.0