From 7921f07c9da8cd6d90d2aa1b75e96fe0231595fc Mon Sep 17 00:00:00 2001 From: allo Date: Fri, 8 Jun 2007 16:11:10 +0000 Subject: [PATCH] userDB fix git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3837 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/data/userDB.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/source/de/anomic/data/userDB.java b/source/de/anomic/data/userDB.java index 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);