Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
userDB fix
allo7921f07c9da8
diff --git a/source/de/anomic/data/userDB.java b/source/de/anomic/data/userDB.javaindex e6008da84..ee2008091 100644--- a/source/de/anomic/data/userDB.java+++ b/source/de/anomic/data/userDB.java@@ -235,14 +235,15 @@ public final class userDB {public Entry md5Auth(String user, String md5){Entry entry=this.getEntry(user);if( entry != null && entry.getMD5EncodedUserPwd().equals(md5)){- if(entry.isLoggedOut()){- try{- entry.setProperty(Entry.LOGGED_OUT, "false");- }catch(IOException e){}- return null;- }+ if(entry.isLoggedOut()){+ try{+ entry.setProperty(Entry.LOGGED_OUT, "false");+ }catch(IOException e){}+ return null;+ }+ return entry;}- return entry;+ return null;}public Entry cookieAuth(String cookieString){String token=getLoginToken(cookieString);