■ ■ ■ ■ ■ ■
src/main/java/org/owasp/wrongsecrets/StatsController.java
| skipped 14 lines |
15 | 15 | | @Autowired |
16 | 16 | | private SessionConfiguration sessionConfiguration; |
17 | 17 | | |
18 | | - | |
| 18 | + | @Value("${hints_enabled}") |
| 19 | + | private boolean hintsEnabled; |
| 20 | + | @Value("${reason_enabled}") |
| 21 | + | private boolean reasonEnabled; |
| 22 | + | @Value("${ctf_enabled}") |
| 23 | + | private boolean ctfModeEnabled; |
19 | 24 | | |
20 | 25 | | @Value("${canarytokenURLs}") |
21 | 26 | | private String[] canaryTokenURLs; |
| skipped 4 lines |
26 | 31 | | model.addAttribute("sessioncounter", sessionConfiguration.getCounter()); |
27 | 32 | | model.addAttribute("lastCanaryToken", canaryCounter.getLastToken()); |
28 | 33 | | model.addAttribute("canarytokenURLs", canaryTokenURLs); |
| 34 | + | model.addAttribute("hintsEnabled", hintsEnabled); |
| 35 | + | model.addAttribute("reasonEnabled", reasonEnabled); |
| 36 | + | model.addAttribute("ctfModeEnabled",ctfModeEnabled); |
29 | 37 | | return "stats"; |
30 | 38 | | } |
31 | 39 | | } |
| skipped 1 lines |