File tree Expand file tree Collapse file tree 1 file changed +13
-14
lines changed
src/main/java/org/owasp/wrongsecrets Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change 22
33import jakarta .servlet .http .HttpServletRequest ;
44import java .util .stream .Collectors ;
5- import org .owasp .wrongsecrets .challenges .ChallengeUI ;
65import org .owasp .wrongsecrets .definitions .ChallengeDefinitionsConfiguration ;
76import org .springframework .beans .factory .annotation .Value ;
87import org .springframework .ui .Model ;
@@ -38,19 +37,19 @@ public AllControllerAdvice(
3837
3938 @ ModelAttribute
4039 public void addChallenges (Model model ) {
41- model .addAttribute (
42- "challenges" ,
43- challengeDefinitionsConfiguration .challenges ().stream ()
44- .map (
45- def ->
46- ChallengeUI .toUI (
47- def ,
48- scoreCard ,
49- runtimeEnvironment ,
50- challenges .difficulties (),
51- challenges .getDefinitions ().environments (),
52- challenges .navigation (def )))
53- .collect (Collectors .toList ()));
40+ // model.addAttribute(
41+ // "challenges",
42+ // challengeDefinitionsConfiguration.challenges().stream()
43+ // .map(
44+ // def ->
45+ // ChallengeUI.toUI(
46+ // def,
47+ // scoreCard,
48+ // runtimeEnvironment,
49+ // challenges.difficulties(),
50+ // challenges.getDefinitions().environments(),
51+ // challenges.navigation(def)))
52+ // .collect(Collectors.toList()));
5453 }
5554
5655 @ ModelAttribute
You can’t perform that action at this time.
0 commit comments