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:
parent
1493631f02
commit
decc426267
@ -416,20 +416,21 @@ public class InsecureLogin extends SequentialLessonAdapter
|
|||||||
Option httpOption = new Option();
|
Option httpOption = new Option();
|
||||||
httpOption.addElement("HTTP");
|
httpOption.addElement("HTTP");
|
||||||
Option tcpOption = new Option();
|
Option tcpOption = new Option();
|
||||||
tcpOption.addElement("TCP");
|
tcpOption.addElement("UDP");
|
||||||
|
Option ipsecOption = new Option();
|
||||||
|
ipsecOption.addElement("IPSEC");
|
||||||
Option msnmsOption = new Option();
|
Option msnmsOption = new Option();
|
||||||
msnmsOption.addElement("MSNMS");
|
msnmsOption.addElement("MSNMS");
|
||||||
Option tlsOption = new Option();
|
Option tlsOption = new Option();
|
||||||
tlsOption.addElement("TLS");
|
tlsOption.addElement("TLS");
|
||||||
protocolSelect.addElement(httpOption);
|
protocolSelect.addElement(httpOption);
|
||||||
|
protocolSelect.addElement(ipsecOption);
|
||||||
protocolSelect.addElement(msnmsOption);
|
protocolSelect.addElement(msnmsOption);
|
||||||
protocolSelect.addElement(tcpOption);
|
protocolSelect.addElement(tcpOption);
|
||||||
protocolSelect.addElement(tlsOption);
|
protocolSelect.addElement(tlsOption);
|
||||||
td4.addElement(protocolSelect);
|
td4.addElement(protocolSelect);
|
||||||
//div.addElement(new BR());
|
|
||||||
|
|
||||||
|
|
||||||
//div.addElement(new BR());
|
|
||||||
div.addElement(selectTable);
|
div.addElement(selectTable);
|
||||||
|
|
||||||
div.addElement(new Input(Input.SUBMIT, "Submit", "Submit"));
|
div.addElement(new Input(Input.SUBMIT, "Submit", "Submit"));
|
||||||
|
@ -380,7 +380,6 @@ public class MultiLevelLogin1 extends SequentialLessonAdapter
|
|||||||
ec.addElement(loginDiv);
|
ec.addElement(loginDiv);
|
||||||
ec.addElement(createLogoutLink());
|
ec.addElement(createLogoutLink());
|
||||||
|
|
||||||
updateTan(getLoggedInUser(s), s);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -409,6 +408,7 @@ public class MultiLevelLogin1 extends SequentialLessonAdapter
|
|||||||
private void createSuccessfulLoginContent(WebSession s, ElementContainer ec)
|
private void createSuccessfulLoginContent(WebSession s, ElementContainer ec)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
updateTan(getLoggedInUser(s), s);
|
||||||
String userDataStyle = "margin-top:50px;";
|
String userDataStyle = "margin-top:50px;";
|
||||||
|
|
||||||
Div userDataDiv = new Div();
|
Div userDataDiv = new Div();
|
||||||
|
@ -383,7 +383,6 @@ public class MultiLevelLogin2 extends LessonAdapter
|
|||||||
ec.addElement(loginDiv);
|
ec.addElement(loginDiv);
|
||||||
ec.addElement(createLogoutLink());
|
ec.addElement(createLogoutLink());
|
||||||
|
|
||||||
updateTan(user, s);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -404,7 +403,7 @@ public class MultiLevelLogin2 extends LessonAdapter
|
|||||||
|
|
||||||
private void createSuccessfulLoginContent(WebSession s, ElementContainer ec, String user)
|
private void createSuccessfulLoginContent(WebSession s, ElementContainer ec, String user)
|
||||||
{
|
{
|
||||||
|
updateTan(user, s);
|
||||||
String userDataStyle = "margin-top:50px;";
|
String userDataStyle = "margin-top:50px;";
|
||||||
|
|
||||||
Div userDataDiv = new Div();
|
Div userDataDiv = new Div();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user