mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: key check report
This commit is contained in:
1 parent
cf4ef57f68
commit
132ef0312c
14 files changed
+38
-25
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@hydrooj/hydrojudge",
|
||||
"bin": "bin/hydrojudge.js",
|
||||
"version": "2.11.2",
|
||||
"version": "2.11.3",
|
||||
"main": "package.json",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
@@ -229,6 +229,7 @@ export default async function readCases(folder: string, cfg: Record<string, any>
|
||||
result.subtasks = c.subtasks;
|
||||
result.count = c.count;
|
||||
}
|
||||
if ((!args.key) || args.key !== result.key) isValidConfig(result);
|
||||
if (args.key && args.key !== result.key) throw new FormatError('Incorrect secret key');
|
||||
if (!args.key) isValidConfig(result);
|
||||
return result;
|
||||
}
|
||||
Reference in new issue
Block a user