fix whitelist mode on web lib
authorNiki Roo <niki@nikiroo.be>
Mon, 11 May 2020 22:18:29 +0000 (00:18 +0200)
committerNiki Roo <niki@nikiroo.be>
Mon, 11 May 2020 22:18:29 +0000 (00:18 +0200)
src/be/nikiroo/fanfix/library/WebLibraryServer.java

index e0096fcc590b94963137d1476d9f57caf7398124..a59fa3456d3d294b7614db718eaacadadb2d4415 100644 (file)
@@ -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=/"));