Skip to content

Commit

Permalink
add Hardware & RealWorld
Browse files Browse the repository at this point in the history
  • Loading branch information
LordCasser committed Aug 12, 2022
1 parent 41d2675 commit 66d93b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/constValue.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const constValue = {
challengeType: ["WEB", "RE", "PWN", "MISC", "CRYPTO"],
challengeType: ["WEB", "RE", "PWN", "MISC", "CRYPTO", "HARDWARE", "RW"],
roleType: ["member", "admin"],
stateType: ["normal", "disabled"],
flagType: ["Single", "Multiple", "Regexp", "Dynamic"],
Expand Down
2 changes: 1 addition & 1 deletion server/services/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (input *ChallengeMutateInput) CheckPass() bool {
}

func checkChallengeCategory(str string) bool {
return str == "WEB" || str == "RE" || str == "PWN" || str == "MISC" || str == "CRYPTO" // TODO:
return str == "WEB" || str == "RE" || str == "PWN" || str == "MISC" || str == "CRYPTO" || str == "HARDWARE" || str == "RW"
}

func checkChallengeState(str string) bool {
Expand Down

0 comments on commit 66d93b4

Please sign in to comment.