No more yml(3)
This commit is contained in:
@ -30,11 +30,9 @@
|
||||
*/
|
||||
package org.owasp.webgoat.controller;
|
||||
|
||||
import com.google.gson.JsonObject;
|
||||
import org.json.JSONObject;
|
||||
import org.owasp.webgoat.lessons.AbstractLesson;
|
||||
import org.owasp.webgoat.lessons.NewLesson;
|
||||
import org.owasp.webgoat.lessons.RandomLessonAdapter;
|
||||
import org.owasp.webgoat.plugins.YmlBasedLesson;
|
||||
import org.owasp.webgoat.session.WebSession;
|
||||
import org.springframework.security.core.GrantedAuthority;
|
||||
import org.springframework.security.core.context.SecurityContext;
|
||||
@ -46,7 +44,6 @@ import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
@ -69,7 +66,7 @@ public class StartLesson {
|
||||
model.addObject("lesson", ws.getCurrentLesson());
|
||||
model.addObject("message", ws.getMessage());
|
||||
model.addObject("instructions", ws.getInstructions());
|
||||
boolean isMigrated = ws.getCurrentLesson() instanceof YmlBasedLesson;
|
||||
boolean isMigrated = ws.getCurrentLesson() instanceof NewLesson;
|
||||
model.addObject("migrated", isMigrated); //remove after ECS removal otherwise you will see the lesson twice
|
||||
model.setViewName("lesson_content");
|
||||
return model;
|
||||
|
Reference in New Issue
Block a user