Warnings fixed:

Unneded imports deleted
Never read variables deleted

git-svn-id: http://webgoat.googlecode.com/svn/trunk/webgoat@323 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
wirth.marcel
2008-04-13 15:15:09 +00:00
parent e5814afccf
commit 2b4043d4bd
4 changed files with 4 additions and 26 deletions

View File

@ -7,6 +7,7 @@ import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import org.apache.ecs.Element;
import org.apache.ecs.ElementContainer;
import org.apache.ecs.StringElement;
@ -140,10 +141,6 @@ public class SessionFixation extends SequentialLessonAdapter
getLessonTracker(s).setStage(3);
s.setMessage("You completed stage 2!");
}
// else
// {
// createStage2Content(s);
// }
}
String mailContent = s.getParser().getRawParameter(MAILCONTENTNAME, "");
@ -442,22 +439,6 @@ public class SessionFixation extends SequentialLessonAdapter
return ec;
}
/**
* See if the user has logged in correctly
*
* @param s
* @return true if loggedIn
*/
private boolean loggedIn(WebSession s)
{
try
{
return s.get(LOGGEDIN).equals("true");
} catch (Exception e)
{
return false;
}
}
/**
* See if the password and corresponding user is valid