|
|
@ -235,14 +235,15 @@ public final class userDB {
|
|
|
|
public Entry md5Auth(String user, String md5){
|
|
|
|
public Entry md5Auth(String user, String md5){
|
|
|
|
Entry entry=this.getEntry(user);
|
|
|
|
Entry entry=this.getEntry(user);
|
|
|
|
if( entry != null && entry.getMD5EncodedUserPwd().equals(md5)){
|
|
|
|
if( entry != null && entry.getMD5EncodedUserPwd().equals(md5)){
|
|
|
|
if(entry.isLoggedOut()){
|
|
|
|
if(entry.isLoggedOut()){
|
|
|
|
try{
|
|
|
|
try{
|
|
|
|
entry.setProperty(Entry.LOGGED_OUT, "false");
|
|
|
|
entry.setProperty(Entry.LOGGED_OUT, "false");
|
|
|
|
}catch(IOException e){}
|
|
|
|
}catch(IOException e){}
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return entry;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return entry;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public Entry cookieAuth(String cookieString){
|
|
|
|
public Entry cookieAuth(String cookieString){
|
|
|
|
String token=getLoginToken(cookieString);
|
|
|
|
String token=getLoginToken(cookieString);
|
|
|
|