Skip to content

Commit 66d93b4

Browse files
committed
add Hardware & RealWorld
1 parent 41d2675 commit 66d93b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/constValue.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const constValue = {
2-
challengeType: ["WEB", "RE", "PWN", "MISC", "CRYPTO"],
2+
challengeType: ["WEB", "RE", "PWN", "MISC", "CRYPTO", "HARDWARE", "RW"],
33
roleType: ["member", "admin"],
44
stateType: ["normal", "disabled"],
55
flagType: ["Single", "Multiple", "Regexp", "Dynamic"],

server/services/types/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func (input *ChallengeMutateInput) CheckPass() bool {
167167
}
168168

169169
func checkChallengeCategory(str string) bool {
170-
return str == "WEB" || str == "RE" || str == "PWN" || str == "MISC" || str == "CRYPTO" // TODO:
170+
return str == "WEB" || str == "RE" || str == "PWN" || str == "MISC" || str == "CRYPTO" || str == "HARDWARE" || str == "RW"
171171
}
172172

173173
func checkChallengeState(str string) bool {

0 commit comments

Comments
 (0)