Skip to content

Commit 7e43fad

Browse files
committed
Add TODOs to support hint/challenge sequences
(as introduced with CTFd 3.5)
1 parent 8d4d9ed commit 7e43fad

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ LABEL maintainer="Bjoern Kimminich <[email protected]>" \
1616
org.opencontainers.image.vendor="Open Web Application Security Project" \
1717
org.opencontainers.image.documentation="https://help.owasp-juice.shop/part1/ctf.html" \
1818
org.opencontainers.image.licenses="MIT" \
19-
org.opencontainers.image.version="9.1.0" \
19+
org.opencontainers.image.version="9.1.1" \
2020
org.opencontainers.image.url="https://owasp-juice.shop" \
2121
org.opencontainers.image.source="https://github.com/juice-shop/juice-shop-ctf.git" \
2222
org.opencontainers.image.revision=$VCS_REF \

lib/generators/ctfd.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function createCtfdExport (challenges, { insertHints, insertHintUrls, insertHint
5252
)
5353
}
5454

55-
function insertHintUrl ({ hints }, challenge) {
55+
function insertHintUrl ({ hints }, challenge) { // TODO: Add "requirements":{"prerequisites":[challenge.id]}} to enforce unlock order
5656
hints.results.push(
5757
{
5858
id: 10000 + challenge.id,
@@ -64,7 +64,7 @@ function createCtfdExport (challenges, { insertHints, insertHintUrls, insertHint
6464
)
6565
}
6666

67-
function insertHintSnippet ({ hints }, challenge, snippet) {
67+
function insertHintSnippet ({ hints }, challenge, snippet) { // TODO: Add "requirements":{"prerequisites":[challenge.id,10000+challenge.id]}} to enforce unlock order
6868
hints.results.push(
6969
{
7070
id: 20000 + challenge.id,

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "juice-shop-ctf-cli",
3-
"version": "9.1.0",
3+
"version": "9.1.1",
44
"description": "Capture-the-Flag (CTF) environment setup tools for OWASP Juice Shop",
55
"keywords": [
66
"web security",

0 commit comments

Comments
 (0)