Minor changes... Tan gets now only updatet after it was correct

git-svn-id: http://webgoat.googlecode.com/svn/trunk/webgoat@341 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
wirth.marcel 2008-04-18 08:38:51 +00:00
parent 1493631f02
commit decc426267
3 changed files with 7 additions and 7 deletions

View File

@ -416,20 +416,21 @@ public class InsecureLogin extends SequentialLessonAdapter
Option httpOption = new Option();
httpOption.addElement("HTTP");
Option tcpOption = new Option();
tcpOption.addElement("TCP");
tcpOption.addElement("UDP");
Option ipsecOption = new Option();
ipsecOption.addElement("IPSEC");
Option msnmsOption = new Option();
msnmsOption.addElement("MSNMS");
Option tlsOption = new Option();
tlsOption.addElement("TLS");
protocolSelect.addElement(httpOption);
protocolSelect.addElement(ipsecOption);
protocolSelect.addElement(msnmsOption);
protocolSelect.addElement(tcpOption);
protocolSelect.addElement(tlsOption);
td4.addElement(protocolSelect);
//div.addElement(new BR());
//div.addElement(new BR());
div.addElement(selectTable);
div.addElement(new Input(Input.SUBMIT, "Submit", "Submit"));

View File

@ -380,7 +380,6 @@ public class MultiLevelLogin1 extends SequentialLessonAdapter
ec.addElement(loginDiv);
ec.addElement(createLogoutLink());
updateTan(getLoggedInUser(s), s);
}
/**
@ -409,6 +408,7 @@ public class MultiLevelLogin1 extends SequentialLessonAdapter
private void createSuccessfulLoginContent(WebSession s, ElementContainer ec)
{
updateTan(getLoggedInUser(s), s);
String userDataStyle = "margin-top:50px;";
Div userDataDiv = new Div();

View File

@ -383,7 +383,6 @@ public class MultiLevelLogin2 extends LessonAdapter
ec.addElement(loginDiv);
ec.addElement(createLogoutLink());
updateTan(user, s);
}
/**
@ -404,7 +403,7 @@ public class MultiLevelLogin2 extends LessonAdapter
private void createSuccessfulLoginContent(WebSession s, ElementContainer ec, String user)
{
updateTan(user, s);
String userDataStyle = "margin-top:50px;";
Div userDataDiv = new Div();