mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-12 23:20:25 +08:00
additional backend check
This commit is contained in:
parent
fee74f54ab
commit
86bfd86ec2
1 changed files with 3 additions and 0 deletions
|
@ -56,6 +56,9 @@ class ResultController {
|
|||
) {
|
||||
return res.status(400).json({ message: "Bad input" });
|
||||
}
|
||||
if (result.wpm == result.raw && result.acc != 100) {
|
||||
return res.status(400).json({ message: "Bad input" });
|
||||
}
|
||||
if (
|
||||
(result.mode === "time" && result.mode2 < 15 && result.mode2 > 0) ||
|
||||
(result.mode === "time" &&
|
||||
|
|
Loading…
Reference in a new issue