XSS lesson updates
This commit is contained in:
@ -54,7 +54,7 @@ define(['jquery',
|
||||
webgoat.customjs.jquery = $; //passing jquery into custom js scope ... still klunky, but works for now
|
||||
webgoat.customjs.jqueryVuln = $vuln;
|
||||
|
||||
// temporary shim to support dom-xss lesson
|
||||
// temporary shim to support dom-xss assignment
|
||||
webgoat.customjs.phoneHome = function (e) {
|
||||
console.log('phoneHome invoked');
|
||||
console.log(arguments.callee);
|
||||
@ -97,6 +97,11 @@ define(['jquery',
|
||||
this.menuController.updateMenu(name);
|
||||
},
|
||||
|
||||
testRoute: function (param) {
|
||||
this.lessonController.testHandler(param);
|
||||
//this.menuController.updateMenu(name);
|
||||
},
|
||||
|
||||
welcomeRoute: function () {
|
||||
render();
|
||||
this.lessonController.loadWelcome();
|
||||
|
@ -114,7 +114,9 @@ define(['jquery',
|
||||
this.renderFeedback(data.feedback);
|
||||
|
||||
this.renderOutput(data.output || "");
|
||||
if (data.assignmentCompleted) {
|
||||
//TODO: refactor back assignmentCompleted in Java
|
||||
if (data.lessonCompleted || data.assignmentCompleted) {
|
||||
|
||||
this.markAssignmentComplete();
|
||||
this.trigger('assignment:complete');
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user