Skip to content

Commit

Permalink
userDB fix
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3837 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
allo committed Jun 8, 2007
1 parent 3e24ee8 commit 7921f07
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions source/de/anomic/data/userDB.java
Expand Up @@ -235,14 +235,15 @@ public Entry passwordAuth(String user, String password, String ip){
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);
Expand Down

0 comments on commit 7921f07

Please sign in to comment.